Skip to main content
Glama

Viagem Garantida: seguro viagem

Obter o link de contratação de uma oferta

get_purchase_link
Idempotent

Cria um link de contratação HelloSafe para uma oferta de um resultado de search_travel_insurance. O link abre a página de contratação dessa oferta na HelloSafe, onde o viajante preenche os seus dados e paga; esta ferramenta não compra nem cobra nada. Os links expiram ao fim de 30 dias.

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": {
      "session_id": "<session_id>",
      "offer_id": "<offer_id>"
    },
    "name": "get_purchase_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
offer_idYesoffer_id escolhido pelo viajante.
session_idYessession_id devolvido por search_travel_insurance.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Goes well beyond the annotations by resolving the apparent tension of readOnlyHint=false: it creates a link but does not buy or charge anything, and the traveler completes payment on the HelloSafe page. It also discloses link expiry at 30 days, which no annotation conveys. Auth requirements and rate limits are still unstated.

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?

Three tight sentences, front-loaded with what is created, followed by what happens downstream and the expiry constraint. No filler and no repetition of the title.

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 two-parameter tool with annotations covering safety and open-world behavior, the description supplies the essential context about side effects and link lifetime. The one remaining gap is that, with no output schema, it never says the result is a URL string the agent should surface.

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%, so both parameters are already documented in the schema, and the description only adds that the offer originates from a search_travel_insurance result. Baseline 3 applies since the schema does the heavy lifting for 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: it creates a HelloSafe contracting link for an offer. It also anchors the resource to the sibling that produces it (a search_travel_insurance result), so an agent can tell it apart from search and from get_offer_details 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 Guidelines4/5

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

Usage context is clear: the tool is called for an offer obtained from a search_travel_insurance result, which implies the select-then-link flow. It does not name an explicit alternative or exclusion (for example, when to use get_offer_details instead of generating a link), so it stops short of full when/when-not guidance.

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.