Skip to main content
Glama

PyAI Voice AI

Set Agent Tools

set_agent_tools
DestructiveIdempotent

Replace the tools bound to an Agent. Read the current Agent first; this replaces its bindings. Use saved tool IDs; configure connection settings privately in the PyAI console. Never supply credentials.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "<id>",
      "body": "<body>"
    },
    "name": "set_agent_tools"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
bodyYesReplace bindings using saved tool IDs. Existing settings are preserved for retained bindings. Credentials and connection settings are not accepted through MCP.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is covered structurally. The description adds genuinely useful context beyond that: that the operation is a full replacement of existing bindings, that reading the current Agent first is a mitigation, and that credentials are out of scope. It does not say what happens to bindings whose tool IDs are stale or invalid, which is the main residual gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, front-loaded with the verb and action, followed by prerequisites and constraints in priority order. The credential warning is slightly redundant with the console-configuration sentence and with the schema's own body description, but the repetition is defensible for a security-critical instruction.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, open-world mutation with no output schema, the definition covers overwrite semantics, the read-before-write prerequisite, input sourcing, and credential handling. Since no output schema exists, the absence of return-value documentation is a minor omission rather than a structural fault.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 50%: the nested tool_id and body fields carry their own descriptions, but the top-level 'id' parameter is undocumented in the schema. The description only indirectly clarifies these, via 'bound to an Agent' and 'Use saved tool IDs'. It adds some meaning but does not fully compensate for the bare 'id' field.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Replace the tools bound to an Agent.' The word 'Replace' correctly signals full-overwrite semantics rather than incremental addition, which distinguishes it from set_agent_knowledge by resource. It stops short of naming a sibling explicitly, so it lands at 4 rather than 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a concrete prerequisite ('Read the current Agent first'), a sourcing rule for inputs ('Use saved tool IDs'), and an out-of-band exclusion ('configure connection settings privately in the PyAI console'). What it does not do is explicitly name the read tool (get_agent) or the discovery tool (discover_tools) as the alternatives, leaving the agent to map those phrasings to siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.