Skip to main content
Glama

Attach code connector

attach_code_connector

Attach an active code connector (tenant-authored Python tool) to the agent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agent_idYesTarget agent's id (from list_agents / create_agent / get_catalog view=agents).
connector_idYesId of an active code connector.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / agent_id / description
      Added value: +"Target agent's id (from list_agents / create_agent / get_catalog view=agents)."
    • addedInput schema / properties / connector_id / description
      Added value: +"Id of an active code connector."
  2. First observed

TDQS

B3.3/5.0
Behavior2/5

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

Annotations are minimal (readOnlyHint=false, destructiveHint=false), so the description carries the burden. It only adds the constraint that the connector must be active, but does not disclose any side effects, whether it overrides existing attachments, or any permission requirements. This is insufficient for a mutation tool with no annotation-derived safety profile.

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

Conciseness5/5

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

A single, clear sentence with no extraneous information. The purpose is front-loaded, and the clarification about tenant-authored Python tool is concise and adds value without bloat.

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

Completeness3/5

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

For a simple 2-parameter tool with no output schema, the description is adequate but lacks important context. It does not mention preconditions (e.g., agent exists), idempotency, or failure behavior. Given the complexity, it could benefit from additional usage and behavioral details.

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 description coverage is 100%, so both parameters are already documented. The description does not add additional meaning beyond what the schema provides, aside from reinforcing 'active' which is also in the schema. Baseline 3 is appropriate.

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?

The description clearly states the action (attach), the resource (code connector), and the target (agent). It also clarifies what a code connector is (tenant-authored Python tool), which distinguishes it from other attach_* siblings like attach_api_endpoint or attach_mcp_server. The verb is specific and unambiguous.

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

Usage Guidelines2/5

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

The description does not provide any guidance on when to use this tool versus the many other attach_* tools. It does not mention that this is for Python-based code connectors only, nor does it offer exclusions or alternatives. The agent must infer from the sibling names, which is not sufficient for clear selection.

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.

Resources