Skip to main content
Glama
Bilinfo MCP Server

Bilinfo MCP Server

Ret status på en kundehenvendelse (Bilinfo)

bilinfo_update_lead
Destructive

Update a car sales lead's status and contact details in Bilinfo, using lead ID and version to prevent changes to leads modified since retrieval.

Instructions

Sætter status på en kundehenvendelse i Bilinfo, fx at kunden er kontaktet, har prøvekørt, har fået et tilbud, har købt eller er tabt, og retter kundens kontaktoplysninger, når de angives. Status: New (ny), Contacted (kontaktet), TestDrive (prøvekørsel), Offer (tilbud), Sold (solgt), CaseCreated (sag oprettet), ContractNotePrinted (slutseddel udskrevet), ContractNoteSigned (slutseddel underskrevet), CarDelivered (bil udleveret) eller LeadLost (tabt). Brug id og version fra listen over kundehenvendelser: henvendelsen slås op først, og den ændres kun, når den er forhandlerens egen og ikke er ændret siden. Ændringen sker med det samme i Bilinfo. Henvendelsen slettes aldrig.

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": {
      "leadId": "<leadId>",
      "version": "<version>",
      "status": "<status>"
    },
    "name": "bilinfo_update_lead"
  }
}

Input Schema

NameRequiredDescriptionDefault
leadIdYesHenvendelsens id fra listen over kundehenvendelser.
statusYesDen nye status.
contactNoKundens kontaktoplysninger, når de skal rettes. Udelad for kun at sætte status.
versionYesHenvendelsens version fra listen over kundehenvendelser. Den viser, at det er forhandlerens egen henvendelse, som den var.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, idempotentHint=false, openWorldHint=true) the description discloses optimistic-concurrency semantics (version must match), an ownership check (only the dealer's own inquiry), immediate persistence ("Ændringen sker med det samme i Bilinfo"), and that the inquiry is never deleted, which reassures an agent that destructiveHint refers to overwriting fields rather than removing the record.

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?

The capability is front-loaded in the first clause, followed by concurrency rules and effects, which is a sensible order. It is somewhat long because all nine status values are spelled out with Danish glosses, which partly duplicates the enum but does add human-readable mapping.

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 write tool with no output schema and open-world annotations, the definition covers prerequisites, validation rules, and side effects well. The main gap is what happens on a version mismatch (rejected vs. retried) and what the caller receives on success, which the agent must infer.

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 documents leadId, version, status and the nested contact fields. The description mainly restates that contact is optional ("når de angives") and echoes the status enumeration, adding only modest meaning beyond the structured data, which fits the baseline 3 for high coverage.

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?

The description names a specific verb and resource ("Sætter status på en kundehenvendelse i Bilinfo") and a second capability ("retter kundens kontaktoplysninger, når de angives"). The full status vocabulary is enumerated, so an agent knows exactly what state values are reachable and can distinguish this from read-only siblings like bilinfo_list_leads.

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?

It gives clear preconditions: use the id and version from the list of customer inquiries, the inquiry is looked up first, and it is changed only if it belongs to the dealer and is unchanged since. It does not explicitly exclude or contrast sibling mutations such as bilinfo_mark_car_sold, so the when-not guidance is implicit rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.