authed

Set an MCP tool's policy

Sets whether agents may call one of a server's tools (allow), need a person's approval each time (ask), or may not call it (deny).

patch/api/v1/org-mcp-servers/{server_id}/tools

Request

  • Base URL
    https://api.teaflask.com (the document declares no server; this is the origin it was published from)
  • URL
    https://api.teaflask.com/api/v1/org-mcp-servers/{server_id}/tools
  • Auth
    none declared

Path parameters

server_idstring uuid required

The server's id, as list_org_mcp_servers returns it.

Request body

tool_namestring required

The tool's name on the server.

policy'allow' | 'ask' | 'deny' required

Response

Successful Response

idstring uuid required

The tool's id, the paging cursor's second half.

namestring required

The tool's name on the server.

agent_tool_namestring required

The name agents call the tool by.

labelstring required

The tool's title for people to read.

descriptionstring required

What the server says the tool does.

read_onlyboolean required

Whether the server says it only reads.

destructiveboolean required

Whether it may change or delete data, unless the server says it doesn't.

policy'allow' | 'ask' | 'deny' required
first_seen_atstring date-time required

When the server first listed it.

missingboolean required

Whether the server stopped listing it; it keeps its policy.

Changes

No recorded changes to this operation across all 1 revision of this API.