Skip to main content
Glama

agent_functions_attach

Idempotent

Attach an existing Agent Function to one receptionist so it can call it on live calls. Additive: other functions stay. A Code function runs its saved tests first and stays unattached if any fails. Show the exact function, receptionist, behaviour, active state, endpoint (HTTP) and code/test summary (Code), then get explicit confirmation before calling. Never repeat secret header values.

Input Schema

NameRequiredDescriptionDefault
agentIdYesReceptionist ID from listAgents.
functionIdYesAgent Function ID from agent_functions_list.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses that the operation is additive ('other functions stay'), that Code functions run saved tests first and abort attachment on failure, and that secret header values must never be echoed. These are non-obvious failure and safety behaviours an agent could not infer from readOnly/destructive/idempotent hints.

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 purpose, then constraints, then the confirmation requirement in a tight sequence of short clauses. Dense but every sentence carries information; only the display-field enumeration is slightly procedural.

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?

With only two fully documented parameters, rich annotations and no output schema, the description covers the remaining gaps: what happens on test failure, that existing attachments persist, and the confirmation/secret-handling protocol. Nothing needed to invoke it correctly is missing.

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 100% and both parameters document their source (listAgents, agent_functions_list). The description only refers generically to 'the exact function, receptionist', adding no syntax or format detail beyond the schema, so baseline 3 applies.

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 ('Attach an existing Agent Function to one receptionist') plus the runtime effect ('so it can call it on live calls'). Clearly distinguishes itself from the create_code/create_http siblings because it says 'existing'.

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?

Implies this is the path for functions that already exist (contrasted with the create_* siblings) and gives the confirmation prerequisite before calling. It never explicitly says when to prefer creating a new function instead, so it sits just below the top mark.

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