Skip to main content
Glama

Prepare a link for a person

smartwebchat_prepare_handoff

Creates a link for a person from the plan, language and industry passed in. For a plan with self-service sign-up it is a single-use sign-up link that carries them into registration and onboarding. The link expires after 15 minutes and works once. With recommended_plan white_label the link leads to the white label page and carries no personal data. The note in the response states the conditions of the plan. It does not create an account or a trial; the person does that by signing up. Works without authentication. The operator can turn this off; it then answers handoff_disabled. /agents/start shows the current status. A retry with the same idempotencyKey returns the same link while it is valid.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
localeNoLanguage of the sign-up page, for example 'en'. Unsupported languages fall back to 'de'.
industry_keyNoIndustry of the business, one of `how_to_test.agent_demo_contract.industries` in /agents/start.
idempotencyKeyNoSend the same key on every retry of the same request; a retry returns the same link for up to 15 minutes.
demo_session_idNoOptional demo session id from the scanner demo; its context is restored after sign-up.
recommended_planNoPlan for the link: business, agency, white_label. A plan with a trial preselects that trial type; the person can change it. For white_label the link leads to the white label page instead of a sign-up. The note in the response states the conditions of the plan.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / recommended_plan / description
      Previous value: -"Plan you recommend: business, agency, white_label. Only plans with a trial preselect the trial type; the person can change it. The agency plan has no trial: account first, then payment. White label is on request only: the link leads to the white label page instead of a sign-up."New value: +"Plan for the link: business, agency, white_label. A plan with a trial preselects that trial type; the person can change it. For white_label the link leads to the white label page instead of a sign-up. The note in the response states the conditions of the plan."
  2. Changed1 schema field changed
    • changedInput schema / properties / recommended_plan / description
      Previous value: -"Plan you recommend: business, agency, white_label. Only plans with a trial preselect the trial type; the person can change it."New value: +"Plan you recommend: business, agency, white_label. Only plans with a trial preselect the trial type; the person can change it. The agency plan has no trial: account first, then payment. White label is on request only: the link leads to the white label page instead of a sign-up."
  3. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations, which only give readOnly/destructive/openWorld flags. It discloses the 15-minute expiry, single-use semantics, that white_label links carry no personal data, that no account or trial is created, that no authentication is required, that an operator can disable it returning 'handoff_disabled', and how idempotencyKey affects retries. Notably, the conditional retry guarantee (same key → same link) is consistent with idempotentHint=false because calls without a key produce a new link.

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-loads the core action and value in the first sentence, then layers constraints in short declarative sentences. It is slightly longer than needed and repeats the 'note in the response states the conditions of the plan' idea across the body and schema text, but every sentence carries operational information.

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?

No output schema exists, and the description only gestures at the response ('a link', 'the note in the response', 'answers handoff_disabled') without laying out the full response shape or field names. For a link-generation tool with 5 optional-ish parameters this is largely sufficient, but a brief statement of the returned fields would close the 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 description coverage is 100%, so the schema already explains locale fallback to 'de', industry_key sourcing from /agents/start, idempotencyKey reuse, and the white_label plan behavior. The description largely restates these (white label page, plan note, retry-with-key) rather than adding new meaning such as format constraints or interaction between demo_session_id and locale. Baseline 3 is right when the schema does the heavy lifting.

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?

Opens with a specific verb and resource: 'Creates a link for a person from the plan, language and industry passed in', then immediately explains what the link does ('carries them into registration and onboarding'). This is unambiguous against siblings like get_leads, get_quote, or create_chatbot, and an agent can tell this is a handoff/link-generation tool without opening the schema.

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?

Gives clear usage context: use it when the person should sign up themselves ('It does not create an account or a trial; the person does that by signing up'), and points to /agents/start for status. It also conditions retry behavior on reusing idempotencyKey and warns the tool can be disabled. It stops short of naming a sibling tool to use instead when a handoff is not appropriate.

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