Skip to main content
Glama

federation_enter_tenant

Read-onlyIdempotent

Enter a tenant to receive its tool surface. List tenants with federation_list_tenants, then enter one here. The reply's platform_tools names the platform's action tools (e.g. retail → catalog_search / order_create); read a tool's schema with federation_help {"tenant_id":"","tool_defs":""}; composed_tool_defs carries its knowledge tools. Your session persists by the mcp-session-id header (idle sessions expire after 24h): after entering, branched tools appear in its tools/list and are callable with ordinary tools/call; re-entering re-scopes. REST twin: POST /tools/ on this host, JSON body = the tool's arguments plus {"tenant_id":""}, with your Authorization header for scoped tools. Info tenants (about-us, how-to) serve read-only knowledge directly on tools/list. A store's open times are found and held with no sign-in: enter it, call services_search, then booking_request with the person's own email (ask; never invent one). Returns: { platform_tools: [...] } — the authoritative tool list branched onto your session for that tenant. Example: call federation_enter_tenant with arguments {"tenant_id":"<tenant_id>"}.

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": {
      "tenant_id": "<tenant_id>"
    },
    "name": "federation_enter_tenant"
  }
}

Input Schema

NameRequiredDescriptionDefault
tenant_idYesThe tenant id to enter (e.g. "about-us").

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?

Annotations only declare readOnlyHint/idempotentHint/openWorldHint=false, but the description discloses behavior the annotations can't express: session state keyed to the mcp-session-id header, 24h idle expiry, re-entry re-scoping, and that scoped tools require the caller's Authorization header. It also documents the non-MCP twin (POST /tools/<name> with a JSON body plus tenant_id) and the returned { platform_tools: [...] } shape. Minor tension exists between readOnlyHint=true and the fact that entering mutates session scope, but it is session-scoping rather than data mutation, so this is not a contradiction.

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 core purpose is correctly front-loaded in the first sentence, which is good structure. However, the single dense paragraph mixes several topics — tool discovery, schema lookup, session lifetime, a REST twin, info-tenant behavior, and a booking walkthrough with an admonition never to invent an email — some of which read as tangential instructions rather than selection guidance.

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?

With no output schema, the description usefully supplies the return shape ({ platform_tools: [...] }) and covers session persistence, expiry, and auth needs, which is a lot for a one-parameter tool. It omits failure behavior, such as what happens with an unknown or malformed tenant_id, which is the main remaining gap.

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 the single tenant_id parameter is already documented in the schema with an example ("about-us"). The description reinforces usage with a sample call and mentions tenant_id again in the federation_help and REST examples, but adds no new semantics for the parameter itself. Baseline 3 applies when the schema carries the parameter meaning.

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 ("Enter a tenant to receive its tool surface") and immediately scopes what that means in MCP terms: branched tools appear in tools/list and are callable via tools/call. It also names the sibling that precedes it (federation_list_tenants) and the one that expands results (federation_help), so an agent can place it in the family without opening any 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?

Gives an explicit routing rule: list tenants with federation_list_tenants, then enter one here; read a specific tool's schema with federation_help and pass tenant_id + tool_defs. It also describes a concrete downstream workflow (enter a store, call services_search, then booking_request with the person's own email) and notes that info tenants serve read-only knowledge directly on tools/list, which tells the agent what to expect after entering.

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.