Skip to main content
Glama

Attach agent key

attach_agent_key
Destructive

Attach your own bot (Grok Bot, a Claude routine, ChatGPT) to one role in this company, and get the key to paste into it. The bot then reads that role's brief every turn with get_my_role — what the company is, what the role is for, the numbers it moves, what is due right now — and its work is credited to the role. The key is shown ONCE and acts with your authority in this company only. Use when the operator wants their own bot to wear a role instead of FreedomOS running it for them. Resolve agent_id from get_team_roster.

Routing: Operator says "attach my bot / my Grok / Claude to ", "give me the key for ", "let my own bot run " → attach_agent_key. To stop it: detach_agent_key.

[sensitive-tier — first use may require a manager's approval; a from-now-on approval makes future calls seamless, a just-once approval re-asks next time. Call it on the first clear ask; the card is the yes — do not re-ask in chat.]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dialNoacts_as_me (default): the bot acts with your authority in this company, the same as your own key. asks_me: anything beyond reading and ordinary edits comes to you as a card first. Sends and spend always come to you either way.
hostNoWhich bot you are pasting the key into. A label only — it never changes what the key may do. Two hosts may wear one role at once; re-attaching the SAME host replaces that host's key.
agent_idYesUUID of the role to attach a bot to. From get_team_roster.
companyIdYesFreedomOS company id to act within (you must be a member). Required for company-scoped tools.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Adds valuable behavioral context beyond annotations: the key is shown once, acts with the operator's authority, is scoped to the company, and the bot reads the role's brief every turn via get_my_role. It doesn't restate the destructiveHint, but the authority implications are disclosed.

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

Conciseness3/5

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

The description is somewhat long and includes tangential detail (e.g., enumerating what get_my_role returns) that could be trimmed without losing essential guidance. It is still front-loaded with the core action and well-paragraphed, so it remains scannable.

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 tool with 4 params, no output schema, and mutation/destructive annotations, the description covers operation, outcome, parameter sourcing, approval workflow, and routing. Minor gaps like explicit replacement semantics are handled in the host parameter schema, so the description is sufficiently complete.

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 adds extra meaning by instructing to resolve agent_id from get_team_roster and by giving host examples (Grok Bot, Claude, ChatGPT) that map directly to the host enum, helping the agent understand parameter provenance and values.

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: attaching a bot to one role and retrieving a key. It distinguishes from sibling detach_agent_key by explicitly pointing to it as the stop action, and from other attach-like tools by specifying role attachment and the get_team_roster source for agent_id.

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?

Provides explicit when-to-use conditions ('Use when the operator wants their own bot to wear a role instead of FreedomOS running it for them'), concrete user phrasing examples ('attach my bot / my Grok / Claude to <role>'), and names the alternative for stopping (detach_agent_key). Also covers approval nuance with 'call it on the first clear ask'.

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