Skip to main content
Glama

Quote a traffic ticket

quote_ticket
Destructive

Sets the price for a traffic ticket (court + fee per citation) and texts the client a link to sign and pay. A first call returns a preview; a second call with confirm true and that preview_id applies the change. Sign-in required.

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": {
      "short_id": "<short_id>",
      "citations": "<citations>"
    },
    "name": "quote_ticket"
  }
}

Input Schema

NameRequiredDescriptionDefault
sendNosms (default) texts the client a link to sign and pay; none returns the link to you.
courtNoCourt name, e.g. "Collin JP 4". Defaults to the court read from the ticket.
confirmNofalse or omitted returns a preview; true applies the change identified by preview_id.
needs_idNoWhen true, the client is asked to upload their ID first (courts that require it).
short_idYesshort_id from list_ticket_links.
citationsYesOne entry per citation to charge (1-5).
preview_idNopreview_id is the id returned by this tool's preview call. Required when confirm is true.
idempotency_keyNoOptional. A retry with the same key returns the first result without a second write. Defaults to preview_id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • addedInput schema / properties / citations
      Added value: +{
      +  "description": "One entry per citation to charge (1-5).",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "fee": {
      +        "description": "Our fee for this citation.",
      +        "type": [
      +          "number",
      +          "string"
      +        ]
      +      },
      +      "number": {
      +        "description": "Citation number, optional.",
      +        "type": "string"
      +      },
      +      "violation": {
      +        "description": "As it goes on the agreement, e.g. \"Speeding, 25 mph or more over\".",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "violation",
      +      "fee"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / confirm
      Added value: +{
      +  "description": "false or omitted returns a preview; true applies the change identified by preview_id.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / court
      Added value: +{
      +  "description": "Court name, e.g. \"Collin JP 4\". Defaults to the court read from the ticket.",
      +  "type": "string"
      +}
    • addedInput schema / properties / idempotency_key
      Added value: +{
      +  "description": "Optional. A retry with the same key returns the first result without a second write. Defaults to preview_id.",
      +  "type": "string"
      +}
    • addedInput schema / properties / needs_id
      Added value: +{
      +  "description": "When true, the client is asked to upload their ID first (courts that require it).",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / preview_id
      Added value: +{
      +  "description": "preview_id is the id returned by this tool's preview call. Required when confirm is true.",
      +  "type": "string"
      +}
    • addedInput schema / properties / send
      Added value: +{
      +  "description": "sms (default) texts the client a link to sign and pay; none returns the link to you.",
      +  "enum": [
      +    "sms",
      +    "none"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / short_id
      Added value: +{
      +  "description": "short_id from list_ticket_links.",
      +  "type": "string"
      +}
    • addedInput schema / required
      Added value: +[
      +  "short_id",
      +  "citations"
      +]
  2. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, openWorldHint=true, readOnlyHint=false and idempotentHint=false, so the safety profile is carried by structured fields. The description adds genuinely useful context the annotations cannot convey: the preview-then-confirm gating, the external SMS to the client, and 'Sign-in required'. It does not say what the preview contains or what a failed/partial application leaves behind.

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 short sentences, front-loaded with the action, then the two-step mechanic, then the auth prerequisite. No filler and nothing repeated from the title alone.

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 an 8-parameter destructive mutation with no output schema, the definition covers the operation's price-plus-notification scope, the confirm gate and the sign-in requirement. Gaps remain on exactly what the preview returns and what a caller receives on the confirm call, but the essentials for correct invocation are present.

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% and every parameter is documented in-schema, including court defaults, needs_id, preview_id and idempotency_key, so the baseline is 3. The description only restates the confirm/preview_id relationship already described on those parameters, and notably omits the send='none' option that returns the link to the caller instead of texting.

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 gives a specific verb and resource ('Sets the price for a traffic ticket') plus the two concrete components (court fee + fee per citation) and the client-facing side effect (texts a sign-and-pay link). It is unambiguous about what the tool does, though it never distinguishes itself from adjacent tools like decline_ticket or list_ticket_links (the latter is only named inside 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?

The two-phase workflow is spelled out clearly: 'A first call returns a preview; a second call with confirm true and that preview_id applies the change.' That tells an agent exactly how to sequence invocation. It stops short of explicit when-not-to-use guidance (e.g. versus decline_ticket for rejecting a ticket), so it is clear context without exclusions.

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