Skip to main content
Glama

Compl-AI-ance

bind_api_key_to_agent

Einen API-Schlüssel dauerhaft zu einem Agenten machen. Verweigert, solange der Agent keine einzige Werkzeugregel hat — die agentenbezogene Prüfung ist fail-closed, und eine Bindung ohne Regeln würde einen funktionierenden Zugang stillschweigend stilllegen.

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": {
      "key_id": "<key_id>",
      "agent_id": "<agent_id>"
    },
    "name": "bind_api_key_to_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
key_idYes
agent_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

With zero annotations, the description carries the full burden and does disclose meaningful behavior: a fail-closed agent-side check and the consequence that a ruleless binding would silently disable working access. It stops short of other mutation-critical facts — whether an existing binding is replaced or rejected, what permissions the caller needs, and whether the binding can be undone.

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?

Two sentences, front-loaded with the action, followed by the single non-obvious constraint and its rationale. Every clause earns its place and there is no padding.

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 two-parameter mutation tool with no annotations, no output schema, and 0% parameter coverage, the description covers the highest-risk behavior (silent disablement) well but leaves idempotency, required caller privileges, and failure/response shape unaddressed.

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

Parameters2/5

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

Schema description coverage is 0% and both parameters (key_id, agent_id) are undocumented in the schema. The description only implicitly indicates one identifier is the key and the other the agent; it adds no format, provenance, or validation meaning for either parameter.

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?

States a specific operation on specific resources: turning an API key into a permanent attribute of an agent. An agent can tell this is a bind/mutation operation, and the 'dauerhaft' (permanent) qualifier distinguishes it from a temporary session activation. It does not, however, distinguish itself from siblings such as set_agent_tool_permission or provision_agent, which touch the same agent configuration area.

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

Usage Guidelines3/5

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

Provides one explicit precondition: the call is refused while the agent has no tool rules at all. That is a real usage constraint, but the description never names the alternative action (e.g., setting a tool permission first) or states the general condition under which an agent should bind a key at all.

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