Skip to main content
Glama

Upsert company reference

upsert_company_reference
Idempotent

Record or update a reference. Pass reference_id to update. release_status defaults to freigabe_angefragt, never to freigegeben: a reference is not cleared just because nobody objected, and 'requested' is a separate state from 'yes' — a procedure demanding references with the bid cannot be built on a clearance that has not arrived.

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": "upsert_company_reference"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNo
currencyNo
period_toNo
company_idNo
client_nameNo
descriptionNo
period_fromNo
contact_nameNo
contact_roleNo
document_urlNo
reference_idNo
release_noteNo
comparabilityNo
contact_emailNo
contact_phoneNo
contract_valueNoNet value. NULL always means NOT ESTABLISHED, never "no value": a project without a contract value in the narrow sense — a lump-sum grant — is recorded with basis bewilligung and the grant amount. That makes an empty field safe to report as a gap.
release_statusNo
client_is_publicNoSome procedures require public-sector clients. Unset counts as not public.
release_checked_atNo
contract_value_basisNoWhat the value refers to. Without it the number is half an answer: for CLARION 240,800 EUR is the grant AWARDED TO CONTECHT, of which 204,679 had been drawn, while the whole project is a multiple of that — three correct numbers under one field name, and in a reference list the wrong one is an unsupportable claim.
contract_value_sourceNoWhere the figure is evidenced: grant decision, Grant Agreement, invoice. A local notes file is not an evidence location.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description then adds genuinely non-obvious behavior: the release_status default is freigabe_angefragt and must never be assumed to be freigegeben, with the reasoning for why that assumption is dangerous. It says nothing about permissions, partial-update semantics, or what happens to fields omitted on update.

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 actionable instruction comes first in two short sentences, and the default-value warning follows. The trailing rationale about 'a procedure demanding references with the bid' is longer than needed to make the point, but it is not padding — it explains why the default matters.

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

Completeness2/5

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

For a 21-parameter write tool with no required fields and no output schema, an agent still cannot tell what makes a valid record, whether company_id is effectively mandatory, or what an upsert returns. The definition nails one default but leaves the bulk of a complex, all-optional schema unexplained.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 19% across 21 parameters, so the description carries most of the burden — yet it explains the semantics of exactly one parameter (release_status) and its default. Nineteen other fields, including company_id, reference_id format, period_from/period_to, and comparability, are undefined in both places; the rich prose is spent on justification rather than on filling that gap.

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?

"Record or update a reference" gives a concrete verb pair and resource, and the upsert duality is stated up front rather than left implicit in the name. It does not distinguish itself from siblings such as list_company_references or link_reference_personnel, so an agent must infer that this is the write path for company references.

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?

"Pass reference_id to update" is an explicit rule that selects between the create and update modes, which is the main decision an agent faces here. It stops short of naming alternatives or stating when not to use this tool (e.g., when the reference already exists and only a person link is needed).

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