Skip to main content
Glama

Code for a Terudo Element

elements_snippet
Read-onlyIdempotent

Ready-to-paste code that mounts one Terudo Element in a page, for HTML, React, Next.js or Vue, with the trip data given. Optionally the server code for an element session (client discount, trusted email, reference, return URL).

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": {
      "element": "<element>",
      "context": "<context>"
    },
    "name": "elements_snippet"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoDeparture, YYYY-MM-DD.
keyNoA publishable key pk_live_… or pk_test_…. Default: the public demo key.
daysNoplans: adds daily plans of that length.
colorNoBrand colour, e.g. #0a5b8a.
emailNoTraveller email to prefill, when the page knows it.
startNoArrival, YYYY-MM-DD.
localeNofr, en, de, es, it, pt, zh, ar or hi. Default en.
contextYesIn 15 to 25 words, in the third person, explain what the user is trying to accomplish and why this tool helps. Do not include personal data: say "a traveller" or "a user", never a name, e-mail or phone number.
elementYesWhich element: booking-banner (confirmation page), trip-offer (visa approval, trip page), plans (destination page), destination-picker (shop), esim-gift (a free eSIM from a campaign; always with an element session, falls back to booking-banner), esim-status (customer area).
esim_idNoesim-status: the order's esim.id.
sessionNoAlso give the server code creating an element session.
frameworkNoDefault html.
return_urlNoWhere the checkout sends the traveller back.
destinationNoISO country code (MA, JP) or region (EU-35).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so the safety profile is covered and the bar is lower. The description adds that output is code (not an action on the account) and that session=true additionally yields server code covering client discount, trusted email, reference, and return URL. It stops short of describing the shape of the returned snippet or what happens with an invalid key or element.

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?

Two tight sentences, front-loaded with what is produced and then the optional session extension; no filler. The phrase 'with the trip data given' is slightly vague but the schema resolves it.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 14 parameters, full schema coverage, and annotations carrying the safety profile, the definition is serviceable. However, for a code-generation tool with no output schema, it never describes what the generated snippet looks like (single file vs multiple blocks, placeholder substitution, framework-specific structure), which is the main thing an agent needs to use the result well.

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% with detailed per-parameter docs and two enums, so the schema does the heavy lifting. The description only restates that trip data and a framework choice are supplied plus the optional session flag, adding no syntax or format detail beyond what the schema already provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb and resource: it produces 'ready-to-paste code that mounts one Terudo Element in a page', and it names the supported frameworks (HTML, React, Next.js, Vue). That clearly separates it from rendering/behavioural siblings such as esim_page or checkout, though no sibling is named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is only implied: an agent can infer it should be called when it needs embed code for an element, and the 'Optionally the server code for an element session' clause hints at an extra mode. There is no explicit when-to-use, when-not-to-use, or guidance on choosing between this and the sibling tools that surface element pages.

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