Skip to main content
Glama

Connect an agent to a Wiro project

bind_agent_project
DestructiveIdempotent

Connect a deployed agent to a Wiro project, so it can run Wiro models, with no key in this chat. Without project_id it takes the project of this connection; project_id takes one from list_projects. Call it without confirm first: it shows the project, what it replaces, whether a running agent restarts and which wallet pays for the agent's model runs, and changes nothing. After the user agrees, repeat the call as its nextAction shows, with confirm: true. Connecting the same project again changes nothing and does not restart the agent; if the project's secret changed, restart the agent with control_agent. On a team agent this needs a team admin or the person who deployed it.

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": {
      "agent_guid": "<agent_guid>"
    },
    "name": "bind_agent_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNofalse (default) only shows what would change. true connects the project.
agent_guidYesThe deployed agent's guid, from list_my_agents.
project_idNoThe id of a project, as a string, from list_projects. Leave it out for the project of this connection.

Output Schema

NameRequiredDescriptionDefault
notesYes
stateYes
walletNoWhich wallet pays for the model runs the agent starts.
appliedNo1 when the stored project changed, 0 when it was already this one.
projectYes
restartNoscheduled: a running agent restarts with the project. none: nothing changed, or the agent is not running and reads it at its next start. failed: the project is saved, but the running agent needs control_agent restart.
replacesYes
warningsYes
agentGuidYes
nextActionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructive=true and idempotent=true, but the description adds real context: the unconfirmed call is a dry run that shows the project, what it replaces, whether a running agent restarts, and which wallet pays. It also discloses that reconnecting the same project changes nothing and does not restart, and spells out the authorization requirement on team agents.

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?

Front-loaded with the verb and purpose, and every sentence carries operational information (preview flow, idempotency, restart, permissions). The single dense paragraph runs long with several clauses chained together, which costs a little readability.

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

Completeness5/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 an output schema, the description covers the safety path (dry-run first), idempotency, restart side effect, billing implication, and authorization. Nothing an agent needs to call it correctly is missing; return values are covered by the output schema.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description still adds value by framing confirm as a two-phase workflow (preview, then confirm: true after user agreement) rather than a plain boolean, and by clarifying that omitting project_id binds the connection's own project. It does not add format or constraint details beyond the schema, so it stays below 5.

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

Purpose5/5

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

States a specific verb and resource ('Connect a deployed agent to a Wiro project') plus the benefit ('so it can run Wiro models, with no key in this chat'), which implicitly distinguishes it from the OAuth-based connection sibling. An agent can tell what this does without opening the schema.

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

Usage Guidelines5/5

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

Gives explicit sequencing (call without confirm first, then repeat with confirm: true as nextAction shows), the default when project_id is omitted, the idempotent no-op case, and the alternative path when the secret changed ('restart the agent with control_agent'). It also names the prerequisite for team agents (team admin or the deployer), covering when-not.

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.