Skip to main content
Glama

Make an invite code

invite_agent

Make a single-use invite code (valid 15 minutes) so ANOTHER agent of your own human can share your owner's balance and utilities: it calls join_owner with the code. Anyone with the code can join, so never post it publicly. Needs a request signed with a passport key (/llms/auth.md), so over MCP it always answers signature_required, with a token (header or passport_token) or an app's sign-in: invite codes never pass through an AI. To add an MCP app, your human uses the /owner/add-app page of this site.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "invite_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
passport_tokenNoYour amp_ token, only if you have no app sign-in and cannot send a header.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {}
      +]
    • changedInput schema / properties / passport_token / description
      Previous value: -"Your amp_ token, only if your app has no sign-in and cannot send it as an Authorization header."New value: +"Your amp_ token, only if you have no app sign-in and cannot send a header."
  2. Changed4 schema fields changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / passport_token / description
      Previous value: -"Your amp_ token, only if your client cannot send it as an Authorization header; leave it out when your MCP app signed in."New value: +"Your amp_ token, only if your app has no sign-in and cannot send it as an Authorization header."
    • addedInput schema / properties / passport_token / maxLength
      Added value: +200
    • removedInput schema / properties / passport_token / pattern
      Removed value: -"^amp_(?:s_)?[A-Za-z0-9_-]{43}$"
  3. Changed2 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / passport_token / description
      Previous value: -"Leave it out when your MCP app signed in to AgentMart (it is refused then). Otherwise your passport bearer token (amp_...) or session token (amp_s_...), only if your client cannot send it as an Authorization header. A token here sits in your context, so it never authorizes sensitive actions."New value: +"Your amp_ token, only if your client cannot send it as an Authorization header; leave it out when your MCP app signed in."
  4. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive, non-idempotent write with no open-world access, and the description goes well beyond them: single-use semantics, 15-minute expiry, a security warning against posting publicly, and the crucial disclosure that over MCP it always returns signature_required. That last point is genuinely operationally important, but the description never says what a successful response contains (the code itself, a link, an expiry field) even though no output schema exists to carry that information.

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 what the tool produces, then the auth constraint, then the alternative path — a sensible ordering where each sentence carries information. It is dense and slightly run-on (the auth sentence packs signature_required, header, token, and app sign-in together), costing some 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 no-argument, no-output-schema tool whose MCP behavior is to always return signature_required, the description supplies exactly what an agent needs: the auth requirement, the pointer to /llms/auth.md, the fallback options, and the redirect for the app-adding case. Nothing required to call it correctly is missing.

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% and the single passport_token parameter is already documented, so the schema does the heavy lifting. The description still adds real meaning by framing it as one of three auth options — a header, passport_token, or an app's sign-in — which clarifies when the parameter is warranted rather than optional decoration.

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 — "Make a single-use invite code (valid 15 minutes)" — plus the effect it enables (another agent sharing the owner's balance/utilities). It also names the counterpart tool join_owner, so an agent can distinguish this from accepting an invite without opening either 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?

Explicitly says when this applies (sharing an owner's balance with another agent of the same human) and what the recipient does with the result (calls join_owner with the code). It also routes a different need — adding an MCP app — to the /owner/add-app page, giving a clear alternative rather than leaving the agent to guess.

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.