{
  "openapi": "3.1.0",
  "info": {
    "title": "Dub API",
    "version": "1",
    "description": "Dub makes short links you can share and track: use your own domain, sort links into folders and tags, see clicks, leads and sales, and run a partner program. Dub's assistant does this for you when you ask in plain words, and asks you first before big changes like deleting links.\n\n## Getting access\n\nSend `Authorization: Bearer <token>`. Get a token with OAuth 2.1 (authorization code with PKCE, dynamic client registration; the 401 names the metadata), or, for an agent with no browser, by the steps in https://neutral-state-jev-dub-bench.vercel.app/api/neutral-state/agent/auth.md. An agent can also start without an account: an anonymous trial is a fresh, empty account on the live app; it sees and changes only its own data, and it is removed unless a person claims it within 1 hours. Anything the app does outside itself (sending email, charging a card) still happens.\n\n## Errors\n\nEvery answer that is not a success is RFC 9457 `application/problem+json` (`Problem`) with an UPPER_SNAKE `code` and `retryable`; a 401 carries `WWW-Authenticate: Bearer resource_metadata=…` (RFC 9728).\n\n## Idempotency\n\nA write may send `Idempotency-Key: \"<key>\"` (1 to 200 printable ASCII characters). The same key with the same arguments replays the first answer and the tool does not run again; other arguments are 422; a second call while the first runs is 409. Keys are kept 24 hours, at most 1000 per caller. Reads ignore the key.\n\n## Rate limits\n\nAnswers carry `RateLimit-Policy` and `RateLimit`; a refused call is 429 with `Retry-After`.\n\n## Approvals\n\nA call the account owner must approve answers 202 with a receipt and `Location`; poll it with `GET /proposals/status/{proposalId}` until it answers the tool's own result.\n\n## Versioning\n\nThis API follows Dub's tools. `info.version` changes when Dub makes a breaking change. A tool being retired is marked `deprecated` here and answers with `Deprecation` and `Sunset` headers until its sunset date; after removal it answers 404 UNKNOWN_TOOL.",
    "x-neutral-onboarding": {
      "selfServe": {
        "oauth": {
          "dynamicRegistration": true,
          "pkce": "S256"
        },
        "authMd": "https://neutral-state-jev-dub-bench.vercel.app/api/neutral-state/agent/auth.md"
      },
      "sandbox": {
        "kind": "anonymous-trial",
        "start": "https://neutral-state-jev-dub-bench.vercel.app/api/neutral-state/agent/auth.md#start-without-an-account",
        "reads": "all",
        "writes": "listed",
        "claimWindowHours": 1
      }
    }
  },
  "servers": [
    {
      "url": "https://neutral-state-jev-dub-bench.vercel.app/api/neutral-state",
      "description": "Dub's per-tool HTTP API"
    }
  ],
  "externalDocs": {
    "url": "https://neutral-state-jev-dub-bench.vercel.app/developers",
    "description": "Developers"
  },
  "tags": [
    {
      "name": "tools",
      "description": "The app's tools."
    },
    {
      "name": "groups",
      "description": "Groups of tools: one operation runs a member."
    },
    {
      "name": "approvals",
      "description": "Calls held for the account owner's approval."
    }
  ],
  "security": [
    {
      "oauth": []
    }
  ],
  "paths": {
    "/tools": {
      "get": {
        "operationId": "listTools",
        "summary": "List your tools",
        "description": "The tools your token may call, as the MCP server lists them: name, description and input schema.",
        "tags": [
          "tools"
        ],
        "responses": {
          "200": {
            "description": "The tools.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "tools"
                  ],
                  "properties": {
                    "tools": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "name",
                          "inputSchema"
                        ],
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "inputSchema": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Problem"
          },
          "401": {
            "$ref": "#/components/responses/Problem"
          },
          "403": {
            "$ref": "#/components/responses/Problem"
          },
          "404": {
            "$ref": "#/components/responses/Problem"
          },
          "409": {
            "$ref": "#/components/responses/Problem"
          },
          "413": {
            "$ref": "#/components/responses/Problem"
          },
          "422": {
            "$ref": "#/components/responses/Problem"
          },
          "429": {
            "$ref": "#/components/responses/Problem"
          },
          "500": {
            "$ref": "#/components/responses/Problem"
          },
          "502": {
            "$ref": "#/components/responses/Problem"
          },
          "503": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    },
    "/tools/analytics": {
      "post": {
        "operationId": "analytics",
        "summary": "Analytics, customers and logs",
        "description": "How links perform: click, lead and sale numbers for links, folders and the whole workspace, the individual events behind them, customers (people who signed up or bought through a tracked link), shared stats pages and the workspace's API request logs. Use it for any question about clicks, leads, sales or customers, and give numbers only from what it returns, never estimates. Deleting a customer or a shared stats page always waits for a person's approval.",
        "tags": [
          "groups"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "op"
                ],
                "properties": {
                  "op": {
                    "type": "string",
                    "enum": [
                      "search",
                      "describe",
                      "call",
                      "batch"
                    ],
                    "description": "What to do. Start with search when you do not know the exact tool name."
                  },
                  "query": {
                    "type": "string",
                    "description": "search: the goal in plain language. Omit to list every tool in this group."
                  },
                  "scope": {
                    "type": "string",
                    "enum": [
                      "group",
                      "all"
                    ],
                    "description": "search: \"group\" (default) searches this group; \"all\" searches every group and names the group to call each match on."
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 50,
                    "description": "search: maximum matches. Default 8."
                  },
                  "tool": {
                    "type": "string",
                    "description": "describe and call: the exact tool name from this group."
                  },
                  "tools": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "describe: several names."
                  },
                  "input": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "call: the tool's own arguments, shaped by its schema from describe."
                  },
                  "calls": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 10,
                    "description": "batch: the calls to run, in order.",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "tool"
                      ],
                      "properties": {
                        "tool": {
                          "type": "string"
                        },
                        "input": {
                          "type": "object",
                          "additionalProperties": true
                        }
                      }
                    }
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "sequential",
                      "each",
                      "parallel"
                    ],
                    "description": "batch: \"sequential\" (default) stops at the first failure. \"each\" runs every call. \"parallel\" is refused when any call writes."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The tool ran: its CallToolResult.",
            "headers": {
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallToolResult"
                }
              }
            }
          },
          "202": {
            "description": "Held for the account owner's approval: the receipt. Poll `Location` (`GET /proposals/status/{proposalId}`).",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProposalReceipt"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Problem"
          },
          "401": {
            "$ref": "#/components/responses/Problem"
          },
          "403": {
            "$ref": "#/components/responses/Problem"
          },
          "404": {
            "$ref": "#/components/responses/Problem"
          },
          "409": {
            "$ref": "#/components/responses/Problem"
          },
          "413": {
            "$ref": "#/components/responses/Problem"
          },
          "422": {
            "$ref": "#/components/responses/Problem"
          },
          "429": {
            "$ref": "#/components/responses/Problem"
          },
          "500": {
            "$ref": "#/components/responses/Problem"
          },
          "502": {
            "$ref": "#/components/responses/Problem"
          },
          "503": {
            "$ref": "#/components/responses/Problem"
          }
        },
        "x-neutral-annotations": {
          "readOnlyHint": false,
          "destructiveHint": true
        }
      }
    },
    "/tools/automation": {
      "post": {
        "operationId": "automation",
        "summary": "Helpers for Dub's own screens",
        "description": "Small helpers Dub's own screens use: writing suggestions, the support chat, help guides, favicon and workspace-name checks, Unsplash image search and the list of payout countries. An AI rarely needs them; use the other areas (links, domains, analytics, workspaces) for real tasks. Sending a message to Dub's support team always waits for a person's approval.",
        "tags": [
          "groups"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "op"
                ],
                "properties": {
                  "op": {
                    "type": "string",
                    "enum": [
                      "search",
                      "describe",
                      "call",
                      "batch"
                    ],
                    "description": "What to do. Start with search when you do not know the exact tool name."
                  },
                  "query": {
                    "type": "string",
                    "description": "search: the goal in plain language. Omit to list every tool in this group."
                  },
                  "scope": {
                    "type": "string",
                    "enum": [
                      "group",
                      "all"
                    ],
                    "description": "search: \"group\" (default) searches this group; \"all\" searches every group and names the group to call each match on."
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 50,
                    "description": "search: maximum matches. Default 8."
                  },
                  "tool": {
                    "type": "string",
                    "description": "describe and call: the exact tool name from this group."
                  },
                  "tools": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "describe: several names."
                  },
                  "input": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "call: the tool's own arguments, shaped by its schema from describe."
                  },
                  "calls": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 10,
                    "description": "batch: the calls to run, in order.",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "tool"
                      ],
                      "properties": {
                        "tool": {
                          "type": "string"
                        },
                        "input": {
                          "type": "object",
                          "additionalProperties": true
                        }
                      }
                    }
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "sequential",
                      "each",
                      "parallel"
                    ],
                    "description": "batch: \"sequential\" (default) stops at the first failure. \"each\" runs every call. \"parallel\" is refused when any call writes."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The tool ran: its CallToolResult.",
            "headers": {
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallToolResult"
                }
              }
            }
          },
          "202": {
            "description": "Held for the account owner's approval: the receipt. Poll `Location` (`GET /proposals/status/{proposalId}`).",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProposalReceipt"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Problem"
          },
          "401": {
            "$ref": "#/components/responses/Problem"
          },
          "403": {
            "$ref": "#/components/responses/Problem"
          },
          "404": {
            "$ref": "#/components/responses/Problem"
          },
          "409": {
            "$ref": "#/components/responses/Problem"
          },
          "413": {
            "$ref": "#/components/responses/Problem"
          },
          "422": {
            "$ref": "#/components/responses/Problem"
          },
          "429": {
            "$ref": "#/components/responses/Problem"
          },
          "500": {
            "$ref": "#/components/responses/Problem"
          },
          "502": {
            "$ref": "#/components/responses/Problem"
          },
          "503": {
            "$ref": "#/components/responses/Problem"
          }
        },
        "x-neutral-annotations": {
          "readOnlyHint": false,
          "destructiveHint": false
        }
      }
    },
    "/tools/billing": {
      "post": {
        "operationId": "billing",
        "summary": "Partner commissions and payouts",
        "description": "What partners in the partner program earned and were paid: commissions (list, look up, count, chart, export, add by hand, change status or amount) and payouts (list, look up, count, export). Use it when someone asks about a partner's earnings or payments. Nothing here sends money, but adding or changing a commission changes what a partner is paid, so it always waits for a person's approval.",
        "tags": [
          "groups"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "op"
                ],
                "properties": {
                  "op": {
                    "type": "string",
                    "enum": [
                      "search",
                      "describe",
                      "call",
                      "batch"
                    ],
                    "description": "What to do. Start with search when you do not know the exact tool name."
                  },
                  "query": {
                    "type": "string",
                    "description": "search: the goal in plain language. Omit to list every tool in this group."
                  },
                  "scope": {
                    "type": "string",
                    "enum": [
                      "group",
                      "all"
                    ],
                    "description": "search: \"group\" (default) searches this group; \"all\" searches every group and names the group to call each match on."
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 50,
                    "description": "search: maximum matches. Default 8."
                  },
                  "tool": {
                    "type": "string",
                    "description": "describe and call: the exact tool name from this group."
                  },
                  "tools": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "describe: several names."
                  },
                  "input": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "call: the tool's own arguments, shaped by its schema from describe."
                  },
                  "calls": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 10,
                    "description": "batch: the calls to run, in order.",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "tool"
                      ],
                      "properties": {
                        "tool": {
                          "type": "string"
                        },
                        "input": {
                          "type": "object",
                          "additionalProperties": true
                        }
                      }
                    }
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "sequential",
                      "each",
                      "parallel"
                    ],
                    "description": "batch: \"sequential\" (default) stops at the first failure. \"each\" runs every call. \"parallel\" is refused when any call writes."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The tool ran: its CallToolResult.",
            "headers": {
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallToolResult"
                }
              }
            }
          },
          "202": {
            "description": "Held for the account owner's approval: the receipt. Poll `Location` (`GET /proposals/status/{proposalId}`).",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProposalReceipt"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Problem"
          },
          "401": {
            "$ref": "#/components/responses/Problem"
          },
          "403": {
            "$ref": "#/components/responses/Problem"
          },
          "404": {
            "$ref": "#/components/responses/Problem"
          },
          "409": {
            "$ref": "#/components/responses/Problem"
          },
          "413": {
            "$ref": "#/components/responses/Problem"
          },
          "422": {
            "$ref": "#/components/responses/Problem"
          },
          "429": {
            "$ref": "#/components/responses/Problem"
          },
          "500": {
            "$ref": "#/components/responses/Problem"
          },
          "502": {
            "$ref": "#/components/responses/Problem"
          },
          "503": {
            "$ref": "#/components/responses/Problem"
          }
        },
        "x-neutral-annotations": {
          "readOnlyHint": false,
          "destructiveHint": false
        }
      }
    },
    "/tools/domains": {
      "post": {
        "operationId": "domains",
        "summary": "Domains",
        "description": "The domains short links live on: custom domains, Dub's own domains, the free .link domain, and the email domain a partner program sends from. It works in the person's current workspace, so do not ask which; if they have several, the answer lists them to choose from. New links go on the primary domain unless the person names another, so an ordinary link task needs nothing here. Adding, registering, editing, moving or deleting a domain, or making one primary, always waits for a person's approval.",
        "tags": [
          "groups"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "op"
                ],
                "properties": {
                  "op": {
                    "type": "string",
                    "enum": [
                      "search",
                      "describe",
                      "call",
                      "batch"
                    ],
                    "description": "What to do. Start with search when you do not know the exact tool name."
                  },
                  "query": {
                    "type": "string",
                    "description": "search: the goal in plain language. Omit to list every tool in this group."
                  },
                  "scope": {
                    "type": "string",
                    "enum": [
                      "group",
                      "all"
                    ],
                    "description": "search: \"group\" (default) searches this group; \"all\" searches every group and names the group to call each match on."
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 50,
                    "description": "search: maximum matches. Default 8."
                  },
                  "tool": {
                    "type": "string",
                    "description": "describe and call: the exact tool name from this group."
                  },
                  "tools": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "describe: several names."
                  },
                  "input": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "call: the tool's own arguments, shaped by its schema from describe."
                  },
                  "calls": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 10,
                    "description": "batch: the calls to run, in order.",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "tool"
                      ],
                      "properties": {
                        "tool": {
                          "type": "string"
                        },
                        "input": {
                          "type": "object",
                          "additionalProperties": true
                        }
                      }
                    }
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "sequential",
                      "each",
                      "parallel"
                    ],
                    "description": "batch: \"sequential\" (default) stops at the first failure. \"each\" runs every call. \"parallel\" is refused when any call writes."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The tool ran: its CallToolResult.",
            "headers": {
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallToolResult"
                }
              }
            }
          },
          "202": {
            "description": "Held for the account owner's approval: the receipt. Poll `Location` (`GET /proposals/status/{proposalId}`).",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProposalReceipt"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Problem"
          },
          "401": {
            "$ref": "#/components/responses/Problem"
          },
          "403": {
            "$ref": "#/components/responses/Problem"
          },
          "404": {
            "$ref": "#/components/responses/Problem"
          },
          "409": {
            "$ref": "#/components/responses/Problem"
          },
          "413": {
            "$ref": "#/components/responses/Problem"
          },
          "422": {
            "$ref": "#/components/responses/Problem"
          },
          "429": {
            "$ref": "#/components/responses/Problem"
          },
          "500": {
            "$ref": "#/components/responses/Problem"
          },
          "502": {
            "$ref": "#/components/responses/Problem"
          },
          "503": {
            "$ref": "#/components/responses/Problem"
          }
        },
        "x-neutral-annotations": {
          "readOnlyHint": false,
          "destructiveHint": true
        }
      }
    },
    "/tools/integrations": {
      "post": {
        "operationId": "integrations",
        "summary": "Installed apps and webhooks",
        "description": "Apps installed in the workspace (such as Slack, Stripe, Zapier or HubSpot) and the webhooks that send link and conversion events to other systems. Use it to see what is connected and what a webhook has delivered. Uninstalling an app or deleting a webhook always waits for a person's approval. An AI cannot list or read webhooks, because those answers include secret keys; creating or editing webhooks is done in Dub's settings.",
        "tags": [
          "groups"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "op"
                ],
                "properties": {
                  "op": {
                    "type": "string",
                    "enum": [
                      "search",
                      "describe",
                      "call",
                      "batch"
                    ],
                    "description": "What to do. Start with search when you do not know the exact tool name."
                  },
                  "query": {
                    "type": "string",
                    "description": "search: the goal in plain language. Omit to list every tool in this group."
                  },
                  "scope": {
                    "type": "string",
                    "enum": [
                      "group",
                      "all"
                    ],
                    "description": "search: \"group\" (default) searches this group; \"all\" searches every group and names the group to call each match on."
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 50,
                    "description": "search: maximum matches. Default 8."
                  },
                  "tool": {
                    "type": "string",
                    "description": "describe and call: the exact tool name from this group."
                  },
                  "tools": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "describe: several names."
                  },
                  "input": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "call: the tool's own arguments, shaped by its schema from describe."
                  },
                  "calls": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 10,
                    "description": "batch: the calls to run, in order.",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "tool"
                      ],
                      "properties": {
                        "tool": {
                          "type": "string"
                        },
                        "input": {
                          "type": "object",
                          "additionalProperties": true
                        }
                      }
                    }
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "sequential",
                      "each",
                      "parallel"
                    ],
                    "description": "batch: \"sequential\" (default) stops at the first failure. \"each\" runs every call. \"parallel\" is refused when any call writes."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The tool ran: its CallToolResult.",
            "headers": {
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallToolResult"
                }
              }
            }
          },
          "202": {
            "description": "Held for the account owner's approval: the receipt. Poll `Location` (`GET /proposals/status/{proposalId}`).",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProposalReceipt"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Problem"
          },
          "401": {
            "$ref": "#/components/responses/Problem"
          },
          "403": {
            "$ref": "#/components/responses/Problem"
          },
          "404": {
            "$ref": "#/components/responses/Problem"
          },
          "409": {
            "$ref": "#/components/responses/Problem"
          },
          "413": {
            "$ref": "#/components/responses/Problem"
          },
          "422": {
            "$ref": "#/components/responses/Problem"
          },
          "429": {
            "$ref": "#/components/responses/Problem"
          },
          "500": {
            "$ref": "#/components/responses/Problem"
          },
          "502": {
            "$ref": "#/components/responses/Problem"
          },
          "503": {
            "$ref": "#/components/responses/Problem"
          }
        },
        "x-neutral-annotations": {
          "readOnlyHint": false,
          "destructiveHint": true
        }
      }
    },
    "/tools/library": {
      "post": {
        "operationId": "library",
        "summary": "Folders, tags and UTM templates",
        "description": "Organize links with folders (and who may see or edit them), tags and saved UTM templates. Make the folder or tag here, then put links in it with the short link tools. It works in the person's current workspace, so do not ask which; if they have several, the answer lists them to choose from. Deleting a folder or tag keeps its links. Deleting a folder, tag or UTM template always waits for a person's approval.",
        "tags": [
          "groups"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "op"
                ],
                "properties": {
                  "op": {
                    "type": "string",
                    "enum": [
                      "search",
                      "describe",
                      "call",
                      "batch"
                    ],
                    "description": "What to do. Start with search when you do not know the exact tool name."
                  },
                  "query": {
                    "type": "string",
                    "description": "search: the goal in plain language. Omit to list every tool in this group."
                  },
                  "scope": {
                    "type": "string",
                    "enum": [
                      "group",
                      "all"
                    ],
                    "description": "search: \"group\" (default) searches this group; \"all\" searches every group and names the group to call each match on."
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 50,
                    "description": "search: maximum matches. Default 8."
                  },
                  "tool": {
                    "type": "string",
                    "description": "describe and call: the exact tool name from this group."
                  },
                  "tools": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "describe: several names."
                  },
                  "input": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "call: the tool's own arguments, shaped by its schema from describe."
                  },
                  "calls": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 10,
                    "description": "batch: the calls to run, in order.",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "tool"
                      ],
                      "properties": {
                        "tool": {
                          "type": "string"
                        },
                        "input": {
                          "type": "object",
                          "additionalProperties": true
                        }
                      }
                    }
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "sequential",
                      "each",
                      "parallel"
                    ],
                    "description": "batch: \"sequential\" (default) stops at the first failure. \"each\" runs every call. \"parallel\" is refused when any call writes."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The tool ran: its CallToolResult.",
            "headers": {
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallToolResult"
                }
              }
            }
          },
          "202": {
            "description": "Held for the account owner's approval: the receipt. Poll `Location` (`GET /proposals/status/{proposalId}`).",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProposalReceipt"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Problem"
          },
          "401": {
            "$ref": "#/components/responses/Problem"
          },
          "403": {
            "$ref": "#/components/responses/Problem"
          },
          "404": {
            "$ref": "#/components/responses/Problem"
          },
          "409": {
            "$ref": "#/components/responses/Problem"
          },
          "413": {
            "$ref": "#/components/responses/Problem"
          },
          "422": {
            "$ref": "#/components/responses/Problem"
          },
          "429": {
            "$ref": "#/components/responses/Problem"
          },
          "500": {
            "$ref": "#/components/responses/Problem"
          },
          "502": {
            "$ref": "#/components/responses/Problem"
          },
          "503": {
            "$ref": "#/components/responses/Problem"
          }
        },
        "x-neutral-annotations": {
          "readOnlyHint": false,
          "destructiveHint": true
        }
      }
    },
    "/tools/links": {
      "post": {
        "operationId": "links",
        "summary": "Short links",
        "description": "Short links: create, find, edit, tag, move and delete them. Use it for any task about a link, its destination or its short key. It works in the person's current workspace, so do not ask which; if they have several, the answer lists them to choose from. A new link goes on the primary domain unless the person names another. Creating a link checks its own result, so do not repeat it. Deleting links and moving one to another workspace always wait for a person's approval. links_count_list and links_list with no folder or filter cover only links outside folders; to count every link, call links_count_list with {\"query\":{\"groupBy\":\"folderId\"}} and add up the _count values. A delete or move that waits answers PROPOSAL_PENDING and has not happened: tell the person it is waiting for their approval in Dub, give them the reviewUrl that get_proposal returns for it, and do not send it again. Name things as the person does (the short link, the folder's or tag's name), never by id or tool name.",
        "tags": [
          "groups"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "op"
                ],
                "properties": {
                  "op": {
                    "type": "string",
                    "enum": [
                      "search",
                      "describe",
                      "call",
                      "batch"
                    ],
                    "description": "What to do. Start with search when you do not know the exact tool name."
                  },
                  "query": {
                    "type": "string",
                    "description": "search: the goal in plain language. Omit to list every tool in this group."
                  },
                  "scope": {
                    "type": "string",
                    "enum": [
                      "group",
                      "all"
                    ],
                    "description": "search: \"group\" (default) searches this group; \"all\" searches every group and names the group to call each match on."
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 50,
                    "description": "search: maximum matches. Default 8."
                  },
                  "tool": {
                    "type": "string",
                    "description": "describe and call: the exact tool name from this group."
                  },
                  "tools": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "describe: several names."
                  },
                  "input": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "call: the tool's own arguments, shaped by its schema from describe."
                  },
                  "calls": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 10,
                    "description": "batch: the calls to run, in order.",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "tool"
                      ],
                      "properties": {
                        "tool": {
                          "type": "string"
                        },
                        "input": {
                          "type": "object",
                          "additionalProperties": true
                        }
                      }
                    }
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "sequential",
                      "each",
                      "parallel"
                    ],
                    "description": "batch: \"sequential\" (default) stops at the first failure. \"each\" runs every call. \"parallel\" is refused when any call writes."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The tool ran: its CallToolResult.",
            "headers": {
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallToolResult"
                }
              }
            }
          },
          "202": {
            "description": "Held for the account owner's approval: the receipt. Poll `Location` (`GET /proposals/status/{proposalId}`).",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProposalReceipt"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Problem"
          },
          "401": {
            "$ref": "#/components/responses/Problem"
          },
          "403": {
            "$ref": "#/components/responses/Problem"
          },
          "404": {
            "$ref": "#/components/responses/Problem"
          },
          "409": {
            "$ref": "#/components/responses/Problem"
          },
          "413": {
            "$ref": "#/components/responses/Problem"
          },
          "422": {
            "$ref": "#/components/responses/Problem"
          },
          "429": {
            "$ref": "#/components/responses/Problem"
          },
          "500": {
            "$ref": "#/components/responses/Problem"
          },
          "502": {
            "$ref": "#/components/responses/Problem"
          },
          "503": {
            "$ref": "#/components/responses/Problem"
          }
        },
        "x-neutral-annotations": {
          "readOnlyHint": false,
          "destructiveHint": true
        }
      }
    },
    "/tools/partner-account": {
      "post": {
        "operationId": "partner-account",
        "summary": "Your partner account",
        "description": "For a person who is a partner in another company's program, acting on their own partner account: the programs they joined, their links, earnings, referrals, customers, bounties, payouts and messages, their team and invites, and their postbacks. Use it only when the signed-in person is a partner; a program owner managing their partners uses Partners and affiliates. Inviting, changing or removing team members, accepting an invite, deleting a partner link and changing or deleting a postback always wait for a person's approval.",
        "tags": [
          "groups"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "op"
                ],
                "properties": {
                  "op": {
                    "type": "string",
                    "enum": [
                      "search",
                      "describe",
                      "call",
                      "batch"
                    ],
                    "description": "What to do. Start with search when you do not know the exact tool name."
                  },
                  "query": {
                    "type": "string",
                    "description": "search: the goal in plain language. Omit to list every tool in this group."
                  },
                  "scope": {
                    "type": "string",
                    "enum": [
                      "group",
                      "all"
                    ],
                    "description": "search: \"group\" (default) searches this group; \"all\" searches every group and names the group to call each match on."
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 50,
                    "description": "search: maximum matches. Default 8."
                  },
                  "tool": {
                    "type": "string",
                    "description": "describe and call: the exact tool name from this group."
                  },
                  "tools": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "describe: several names."
                  },
                  "input": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "call: the tool's own arguments, shaped by its schema from describe."
                  },
                  "calls": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 10,
                    "description": "batch: the calls to run, in order.",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "tool"
                      ],
                      "properties": {
                        "tool": {
                          "type": "string"
                        },
                        "input": {
                          "type": "object",
                          "additionalProperties": true
                        }
                      }
                    }
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "sequential",
                      "each",
                      "parallel"
                    ],
                    "description": "batch: \"sequential\" (default) stops at the first failure. \"each\" runs every call. \"parallel\" is refused when any call writes."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The tool ran: its CallToolResult.",
            "headers": {
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallToolResult"
                }
              }
            }
          },
          "202": {
            "description": "Held for the account owner's approval: the receipt. Poll `Location` (`GET /proposals/status/{proposalId}`).",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProposalReceipt"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Problem"
          },
          "401": {
            "$ref": "#/components/responses/Problem"
          },
          "403": {
            "$ref": "#/components/responses/Problem"
          },
          "404": {
            "$ref": "#/components/responses/Problem"
          },
          "409": {
            "$ref": "#/components/responses/Problem"
          },
          "413": {
            "$ref": "#/components/responses/Problem"
          },
          "422": {
            "$ref": "#/components/responses/Problem"
          },
          "429": {
            "$ref": "#/components/responses/Problem"
          },
          "500": {
            "$ref": "#/components/responses/Problem"
          },
          "502": {
            "$ref": "#/components/responses/Problem"
          },
          "503": {
            "$ref": "#/components/responses/Problem"
          }
        },
        "x-neutral-annotations": {
          "readOnlyHint": false,
          "destructiveHint": true
        }
      }
    },
    "/tools/partners": {
      "post": {
        "operationId": "partners",
        "summary": "Partners and affiliates",
        "description": "The program owner's side of the partner program: partners and their applications, partner groups, rewards, discount codes, partner links, fraud alerts, and finding new partners in the Dub network. Use it when the person runs a partner program and asks about its partners. Approving, rejecting, adding, banning or deactivating a partner, moving partners between groups, changing or deleting a group or its default links, changing fraud rules and deleting a discount code always wait for a person's approval.",
        "tags": [
          "groups"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "op"
                ],
                "properties": {
                  "op": {
                    "type": "string",
                    "enum": [
                      "search",
                      "describe",
                      "call",
                      "batch"
                    ],
                    "description": "What to do. Start with search when you do not know the exact tool name."
                  },
                  "query": {
                    "type": "string",
                    "description": "search: the goal in plain language. Omit to list every tool in this group."
                  },
                  "scope": {
                    "type": "string",
                    "enum": [
                      "group",
                      "all"
                    ],
                    "description": "search: \"group\" (default) searches this group; \"all\" searches every group and names the group to call each match on."
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 50,
                    "description": "search: maximum matches. Default 8."
                  },
                  "tool": {
                    "type": "string",
                    "description": "describe and call: the exact tool name from this group."
                  },
                  "tools": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "describe: several names."
                  },
                  "input": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "call: the tool's own arguments, shaped by its schema from describe."
                  },
                  "calls": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 10,
                    "description": "batch: the calls to run, in order.",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "tool"
                      ],
                      "properties": {
                        "tool": {
                          "type": "string"
                        },
                        "input": {
                          "type": "object",
                          "additionalProperties": true
                        }
                      }
                    }
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "sequential",
                      "each",
                      "parallel"
                    ],
                    "description": "batch: \"sequential\" (default) stops at the first failure. \"each\" runs every call. \"parallel\" is refused when any call writes."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The tool ran: its CallToolResult.",
            "headers": {
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallToolResult"
                }
              }
            }
          },
          "202": {
            "description": "Held for the account owner's approval: the receipt. Poll `Location` (`GET /proposals/status/{proposalId}`).",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProposalReceipt"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Problem"
          },
          "401": {
            "$ref": "#/components/responses/Problem"
          },
          "403": {
            "$ref": "#/components/responses/Problem"
          },
          "404": {
            "$ref": "#/components/responses/Problem"
          },
          "409": {
            "$ref": "#/components/responses/Problem"
          },
          "413": {
            "$ref": "#/components/responses/Problem"
          },
          "422": {
            "$ref": "#/components/responses/Problem"
          },
          "429": {
            "$ref": "#/components/responses/Problem"
          },
          "500": {
            "$ref": "#/components/responses/Problem"
          },
          "502": {
            "$ref": "#/components/responses/Problem"
          },
          "503": {
            "$ref": "#/components/responses/Problem"
          }
        },
        "x-neutral-annotations": {
          "readOnlyHint": false,
          "destructiveHint": true
        }
      }
    },
    "/tools/programs": {
      "post": {
        "operationId": "programs",
        "summary": "Bounties, campaigns and partner messages",
        "description": "Running the partner program: its settings and brand kit, bounties (create, edit, review partner submissions), email campaigns to partners (draft, test, schedule), partner messages, leads partners submitted, and payouts ready to pay. Use it for bounties, campaigns, messages and program settings. Creating, editing or deleting a bounty, approving or rejecting a submission (approving creates a commission), refreshing a bounty's social stats, sending a test email, and changing or deleting a campaign (scheduling one emails real people) always wait for a person's approval.",
        "tags": [
          "groups"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "op"
                ],
                "properties": {
                  "op": {
                    "type": "string",
                    "enum": [
                      "search",
                      "describe",
                      "call",
                      "batch"
                    ],
                    "description": "What to do. Start with search when you do not know the exact tool name."
                  },
                  "query": {
                    "type": "string",
                    "description": "search: the goal in plain language. Omit to list every tool in this group."
                  },
                  "scope": {
                    "type": "string",
                    "enum": [
                      "group",
                      "all"
                    ],
                    "description": "search: \"group\" (default) searches this group; \"all\" searches every group and names the group to call each match on."
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 50,
                    "description": "search: maximum matches. Default 8."
                  },
                  "tool": {
                    "type": "string",
                    "description": "describe and call: the exact tool name from this group."
                  },
                  "tools": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "describe: several names."
                  },
                  "input": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "call: the tool's own arguments, shaped by its schema from describe."
                  },
                  "calls": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 10,
                    "description": "batch: the calls to run, in order.",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "tool"
                      ],
                      "properties": {
                        "tool": {
                          "type": "string"
                        },
                        "input": {
                          "type": "object",
                          "additionalProperties": true
                        }
                      }
                    }
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "sequential",
                      "each",
                      "parallel"
                    ],
                    "description": "batch: \"sequential\" (default) stops at the first failure. \"each\" runs every call. \"parallel\" is refused when any call writes."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The tool ran: its CallToolResult.",
            "headers": {
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallToolResult"
                }
              }
            }
          },
          "202": {
            "description": "Held for the account owner's approval: the receipt. Poll `Location` (`GET /proposals/status/{proposalId}`).",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProposalReceipt"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Problem"
          },
          "401": {
            "$ref": "#/components/responses/Problem"
          },
          "403": {
            "$ref": "#/components/responses/Problem"
          },
          "404": {
            "$ref": "#/components/responses/Problem"
          },
          "409": {
            "$ref": "#/components/responses/Problem"
          },
          "413": {
            "$ref": "#/components/responses/Problem"
          },
          "422": {
            "$ref": "#/components/responses/Problem"
          },
          "429": {
            "$ref": "#/components/responses/Problem"
          },
          "500": {
            "$ref": "#/components/responses/Problem"
          },
          "502": {
            "$ref": "#/components/responses/Problem"
          },
          "503": {
            "$ref": "#/components/responses/Problem"
          }
        },
        "x-neutral-annotations": {
          "readOnlyHint": false,
          "destructiveHint": true
        }
      }
    },
    "/tools/workspaces": {
      "post": {
        "operationId": "workspaces",
        "summary": "Account and workspace settings",
        "description": "The signed-in person's own account and their workspaces: profile, members and invites, roles, workspace API keys, OAuth apps, plan, invoices and payment methods, usage, and importing links from Bitly, Rebrandly or Short.io. Use it for settings and team questions, not for links. Most changes need the workspace owner, and every account, member, invite, API key, OAuth app and billing change needs a person's approval. SAML, SCIM and referral reads are not available to agents.",
        "tags": [
          "groups"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "op"
                ],
                "properties": {
                  "op": {
                    "type": "string",
                    "enum": [
                      "search",
                      "describe",
                      "call",
                      "batch"
                    ],
                    "description": "What to do. Start with search when you do not know the exact tool name."
                  },
                  "query": {
                    "type": "string",
                    "description": "search: the goal in plain language. Omit to list every tool in this group."
                  },
                  "scope": {
                    "type": "string",
                    "enum": [
                      "group",
                      "all"
                    ],
                    "description": "search: \"group\" (default) searches this group; \"all\" searches every group and names the group to call each match on."
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 50,
                    "description": "search: maximum matches. Default 8."
                  },
                  "tool": {
                    "type": "string",
                    "description": "describe and call: the exact tool name from this group."
                  },
                  "tools": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "describe: several names."
                  },
                  "input": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "call: the tool's own arguments, shaped by its schema from describe."
                  },
                  "calls": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 10,
                    "description": "batch: the calls to run, in order.",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "tool"
                      ],
                      "properties": {
                        "tool": {
                          "type": "string"
                        },
                        "input": {
                          "type": "object",
                          "additionalProperties": true
                        }
                      }
                    }
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "sequential",
                      "each",
                      "parallel"
                    ],
                    "description": "batch: \"sequential\" (default) stops at the first failure. \"each\" runs every call. \"parallel\" is refused when any call writes."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The tool ran: its CallToolResult.",
            "headers": {
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallToolResult"
                }
              }
            }
          },
          "202": {
            "description": "Held for the account owner's approval: the receipt. Poll `Location` (`GET /proposals/status/{proposalId}`).",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProposalReceipt"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Problem"
          },
          "401": {
            "$ref": "#/components/responses/Problem"
          },
          "403": {
            "$ref": "#/components/responses/Problem"
          },
          "404": {
            "$ref": "#/components/responses/Problem"
          },
          "409": {
            "$ref": "#/components/responses/Problem"
          },
          "413": {
            "$ref": "#/components/responses/Problem"
          },
          "422": {
            "$ref": "#/components/responses/Problem"
          },
          "429": {
            "$ref": "#/components/responses/Problem"
          },
          "500": {
            "$ref": "#/components/responses/Problem"
          },
          "502": {
            "$ref": "#/components/responses/Problem"
          },
          "503": {
            "$ref": "#/components/responses/Problem"
          }
        },
        "x-neutral-annotations": {
          "readOnlyHint": false,
          "destructiveHint": true
        }
      }
    },
    "/tools/get_proposal": {
      "post": {
        "operationId": "get_proposal",
        "summary": "get proposal",
        "description": "Read your requested changes and their actual execution status. Pending is not executed.",
        "tags": [
          "approvals"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "proposalId": {
                    "type": "string"
                  },
                  "versionNumber": {
                    "type": "number"
                  },
                  "cursor": {
                    "type": "string"
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  }
                },
                "required": [
                  "proposalId"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The tool ran: its CallToolResult.",
            "headers": {
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallToolResult"
                }
              }
            }
          },
          "202": {
            "description": "Held for the account owner's approval: the receipt. Poll `Location` (`GET /proposals/status/{proposalId}`).",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProposalReceipt"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Problem"
          },
          "401": {
            "$ref": "#/components/responses/Problem"
          },
          "403": {
            "$ref": "#/components/responses/Problem"
          },
          "404": {
            "$ref": "#/components/responses/Problem"
          },
          "409": {
            "$ref": "#/components/responses/Problem"
          },
          "413": {
            "$ref": "#/components/responses/Problem"
          },
          "422": {
            "$ref": "#/components/responses/Problem"
          },
          "429": {
            "$ref": "#/components/responses/Problem"
          },
          "500": {
            "$ref": "#/components/responses/Problem"
          },
          "502": {
            "$ref": "#/components/responses/Problem"
          },
          "503": {
            "$ref": "#/components/responses/Problem"
          }
        },
        "x-neutral-annotations": {
          "readOnlyHint": true,
          "destructiveHint": false
        }
      }
    },
    "/tools/list_proposals": {
      "post": {
        "operationId": "list_proposals",
        "summary": "list proposals",
        "description": "Read your requested changes and their actual execution status. Pending is not executed.",
        "tags": [
          "approvals"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "proposalId": {
                    "type": "string"
                  },
                  "versionNumber": {
                    "type": "number"
                  },
                  "cursor": {
                    "type": "string"
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The tool ran: its CallToolResult.",
            "headers": {
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/CallToolResult"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "structuredContent": {
                          "type": "object",
                          "properties": {
                            "proposals": {
                              "type": "array",
                              "items": {
                                "type": "object"
                              }
                            },
                            "nextCursor": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "202": {
            "description": "Held for the account owner's approval: the receipt. Poll `Location` (`GET /proposals/status/{proposalId}`).",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProposalReceipt"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Problem"
          },
          "401": {
            "$ref": "#/components/responses/Problem"
          },
          "403": {
            "$ref": "#/components/responses/Problem"
          },
          "404": {
            "$ref": "#/components/responses/Problem"
          },
          "409": {
            "$ref": "#/components/responses/Problem"
          },
          "413": {
            "$ref": "#/components/responses/Problem"
          },
          "422": {
            "$ref": "#/components/responses/Problem"
          },
          "429": {
            "$ref": "#/components/responses/Problem"
          },
          "500": {
            "$ref": "#/components/responses/Problem"
          },
          "502": {
            "$ref": "#/components/responses/Problem"
          },
          "503": {
            "$ref": "#/components/responses/Problem"
          }
        },
        "x-neutral-annotations": {
          "readOnlyHint": true,
          "destructiveHint": false
        },
        "x-pagination": {
          "style": "cursor",
          "cursorParam": "cursor",
          "nextField": "nextCursor",
          "limitParam": "limit"
        }
      }
    },
    "/tools/cancel_proposal": {
      "post": {
        "operationId": "cancel_proposal",
        "summary": "cancel proposal",
        "description": "Cancel your pending proposal before execution starts.",
        "tags": [
          "approvals"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "proposalId": {
                    "type": "string"
                  },
                  "versionNumber": {
                    "type": "number"
                  },
                  "cursor": {
                    "type": "string"
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  }
                },
                "required": [
                  "proposalId",
                  "versionNumber"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The tool ran: its CallToolResult.",
            "headers": {
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallToolResult"
                }
              }
            }
          },
          "202": {
            "description": "Held for the account owner's approval: the receipt. Poll `Location` (`GET /proposals/status/{proposalId}`).",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProposalReceipt"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Problem"
          },
          "401": {
            "$ref": "#/components/responses/Problem"
          },
          "403": {
            "$ref": "#/components/responses/Problem"
          },
          "404": {
            "$ref": "#/components/responses/Problem"
          },
          "409": {
            "$ref": "#/components/responses/Problem"
          },
          "413": {
            "$ref": "#/components/responses/Problem"
          },
          "422": {
            "$ref": "#/components/responses/Problem"
          },
          "429": {
            "$ref": "#/components/responses/Problem"
          },
          "500": {
            "$ref": "#/components/responses/Problem"
          },
          "502": {
            "$ref": "#/components/responses/Problem"
          },
          "503": {
            "$ref": "#/components/responses/Problem"
          }
        },
        "x-neutral-annotations": {
          "readOnlyHint": false,
          "destructiveHint": false
        }
      }
    },
    "/tools/get_proposal_result": {
      "post": {
        "operationId": "get_proposal_result",
        "summary": "get proposal result",
        "description": "Read the OUTCOME of one requested change. A receipt is not a result: pass waitMs (up to 10000) to wait for the human decision and the execution in this one call instead of polling. Returns the current state when the wait elapses. Omit versionNumber: with it, the wait also ends at the next intermediate state.",
        "tags": [
          "approvals"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "proposalId": {
                    "type": "string"
                  },
                  "versionNumber": {
                    "type": "number"
                  },
                  "cursor": {
                    "type": "string"
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "waitMs": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000,
                    "description": "Wait up to this many milliseconds for a terminal state before answering."
                  }
                },
                "required": [
                  "proposalId"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The tool ran: its CallToolResult.",
            "headers": {
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallToolResult"
                }
              }
            }
          },
          "202": {
            "description": "Held for the account owner's approval: the receipt. Poll `Location` (`GET /proposals/status/{proposalId}`).",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProposalReceipt"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Problem"
          },
          "401": {
            "$ref": "#/components/responses/Problem"
          },
          "403": {
            "$ref": "#/components/responses/Problem"
          },
          "404": {
            "$ref": "#/components/responses/Problem"
          },
          "409": {
            "$ref": "#/components/responses/Problem"
          },
          "413": {
            "$ref": "#/components/responses/Problem"
          },
          "422": {
            "$ref": "#/components/responses/Problem"
          },
          "429": {
            "$ref": "#/components/responses/Problem"
          },
          "500": {
            "$ref": "#/components/responses/Problem"
          },
          "502": {
            "$ref": "#/components/responses/Problem"
          },
          "503": {
            "$ref": "#/components/responses/Problem"
          }
        },
        "x-neutral-annotations": {
          "readOnlyHint": true,
          "destructiveHint": false
        }
      }
    },
    "/proposals/status/{proposalId}": {
      "get": {
        "operationId": "getProposalStatus",
        "summary": "Poll a held call",
        "description": "The outcome of a call held for approval: 202 while it waits (poll again after Retry-After, or pass waitMs), then the tool's own 200 answer, or a problem (rejected or expired: 409; failed: 502).",
        "tags": [
          "approvals"
        ],
        "parameters": [
          {
            "name": "proposalId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
            }
          },
          {
            "name": "waitMs",
            "in": "query",
            "required": false,
            "description": "Wait up to this many milliseconds for a decision.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 10000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The call ran: the tool's CallToolResult.",
            "headers": {
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "API-Version": {
                "$ref": "#/components/headers/API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CallToolResult"
                }
              }
            }
          },
          "202": {
            "description": "Still waiting.",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProposalReceipt"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Problem"
          },
          "401": {
            "$ref": "#/components/responses/Problem"
          },
          "403": {
            "$ref": "#/components/responses/Problem"
          },
          "404": {
            "$ref": "#/components/responses/Problem"
          },
          "409": {
            "$ref": "#/components/responses/Problem"
          },
          "413": {
            "$ref": "#/components/responses/Problem"
          },
          "422": {
            "$ref": "#/components/responses/Problem"
          },
          "429": {
            "$ref": "#/components/responses/Problem"
          },
          "500": {
            "$ref": "#/components/responses/Problem"
          },
          "502": {
            "$ref": "#/components/responses/Problem"
          },
          "503": {
            "$ref": "#/components/responses/Problem"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Problem": {
        "type": "object",
        "description": "RFC 9457 problem details. `type` is about:blank, so `title` is the status's reason phrase.",
        "required": [
          "type",
          "title",
          "status",
          "detail",
          "code",
          "retryable"
        ],
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "detail": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "An UPPER_SNAKE reason code to branch on."
          },
          "retryable": {
            "type": "boolean",
            "description": "Whether the same request can succeed later."
          },
          "next": {
            "type": "string",
            "description": "What to do."
          },
          "paths": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The input fields at fault."
          },
          "retryAfterMs": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "object",
            "description": "The rate budget that refused the call."
          },
          "backendStatus": {
            "type": "integer",
            "description": "The status the app's own backend answered."
          },
          "result": {
            "type": "object",
            "description": "The tool's own CallToolResult, when the failure is the tool's."
          }
        }
      },
      "CallToolResult": {
        "type": "object",
        "description": "The tool's MCP CallToolResult.",
        "required": [
          "content"
        ],
        "properties": {
          "content": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "type"
              ],
              "properties": {
                "type": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                }
              }
            }
          },
          "structuredContent": {
            "description": "The tool's structured result."
          },
          "isError": {
            "type": "boolean"
          },
          "_meta": {
            "type": "object"
          }
        }
      },
      "ProposalReceipt": {
        "type": "object",
        "description": "A request filed for the account owner's approval instead of running. Poll its Location.",
        "required": [
          "kind",
          "proposalId",
          "state"
        ],
        "properties": {
          "held": {
            "type": "boolean",
            "const": true
          },
          "kind": {
            "type": "string",
            "const": "neutral-state/proposal"
          },
          "proposalId": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "versionNumber": {
            "type": "integer"
          },
          "summary": {
            "type": "string"
          },
          "confirmationUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "Where the owner decides."
          },
          "message": {
            "type": "string"
          }
        }
      }
    },
    "responses": {
      "Problem": {
        "description": "An RFC 9457 problem.",
        "headers": {
          "Retry-After": {
            "$ref": "#/components/headers/Retry-After"
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      }
    },
    "headers": {
      "RateLimit-Policy": {
        "description": "draft-ietf-httpapi-ratelimit-headers-12 §3: each budget this caller is charged on, `<scope>-<seconds>;q=<quota>;w=<seconds>`.",
        "schema": {
          "type": "string"
        }
      },
      "RateLimit": {
        "description": "draft-ietf-httpapi-ratelimit-headers-12 §4: the tightest budget this call spent, `<policy>;a=<calls left>;w=<seconds no more than that fit>`.",
        "schema": {
          "type": "string"
        }
      },
      "Retry-After": {
        "description": "RFC 9110 §10.2.3: seconds to wait before retrying.",
        "schema": {
          "type": "integer"
        }
      },
      "Location": {
        "description": "Where to poll a call held for approval.",
        "schema": {
          "type": "string"
        }
      },
      "API-Version": {
        "description": "The API version this answer follows (`info.version`).",
        "schema": {
          "type": "string"
        }
      },
      "Deprecation": {
        "description": "RFC 9745: the tool is deprecated since this date (`@<epoch seconds>`).",
        "schema": {
          "type": "string"
        }
      },
      "Sunset": {
        "description": "RFC 8594: the HTTP-date after which the tool is removed.",
        "schema": {
          "type": "string"
        }
      }
    },
    "parameters": {
      "IdempotencyKey": {
        "name": "Idempotency-Key",
        "in": "header",
        "required": false,
        "description": "draft-ietf-httpapi-idempotency-key-header-09: an sf-string key; the same key with the same arguments replays the first answer.",
        "schema": {
          "type": "string",
          "maxLength": 202
        }
      }
    },
    "securitySchemes": {
      "oauth": {
        "type": "oauth2",
        "description": "OAuth 2.1, authorization code with PKCE (S256). The protected-resource metadata (RFC 9728) is named by every 401.",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://neutral-state-jev-dub-bench.vercel.app/api/neutral-state/oauth/authorize",
            "tokenUrl": "https://neutral-state-jev-dub-bench.vercel.app/api/neutral-state/oauth/token",
            "refreshUrl": "https://neutral-state-jev-dub-bench.vercel.app/api/neutral-state/oauth/token",
            "scopes": {
              "app.read": "See your data in Dub through its tools, within the agent profile you choose when you connect. Needed for any task that looks something up. Changes nothing.",
              "app.write": "Make changes in Dub directly, within the profile you choose, including deleting things. Needed for changes you want done without approving each one. Some changes cannot be undone.",
              "app.authored": "Use the tools Dub's developers wrote for agents, within the profile you choose. Each such tool also needs app.read, app.write or app.propose for what it does.",
              "app.propose": "Ask for changes in Dub that you approve before they run. Use it instead of app.write when you want to approve each change. Not needed to look things up.",
              "browser.headless": "Use Dub in a background browser signed in as you, when no tab of yours is open, within the profile you choose. Only for tasks that need the website itself; the tools do not need it.",
              "app.observe": "For Dub's operators: read activity across all of Dub's users. Changes nothing. Not offered to personal agents.",
              "app.delegate": "Hand a task to Dub's own assistant (A2A), which runs on Dub's model under your profile. Granted only when asked for by name."
            }
          }
        }
      }
    }
  }
}