Skip to main content
Glama

Upsert company credential

upsert_company_credential
Idempotent

Record or update one credential — a liability policy, the Berufsgenossenschaft membership with its number, an ISO certificate, a register entry. Pass credential_id to update. covers_financial_loss has three states on purpose: leaving it unset means nobody checked, which is not the same as 'not covered' — with advisory work that is exactly where a liability policy fails.

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_credential"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNo
labelNo
notesNo
currencyNo
providerNo
company_idNo
identifierNoPolicy, certificate or membership number.
valid_fromNo
valid_untilNo
document_urlNo
credential_idNo
coverage_per_yearNo
coverage_per_claimNo
covers_financial_lossNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly=false, idempotent=true, destructive=false, so safety is covered. The description adds genuinely new behavioral context: upsert dispatch via credential_id, and the deliberate tri-state semantics of covers_financial_loss where unset means 'unchecked' rather than 'not covered' — a distinction an agent would not infer from the schema. It does not address permissions 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?

Front-loaded with the core action, then one compact sentence per high-value nuance; no filler. The second sentence is dense but each clause carries real decision-relevant information, so it earns its length.

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 14-parameter mutation tool with no output schema, the description covers the two most error-prone aspects (upsert dispatch and the tri-state coverage flag) and grounds them in the business domain. Missing pieces — which financial fields apply to which kinds, and the shape of the response — are moderate gaps but not blocking for correct invocation.

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 only 7% across 14 parameters, so the description must compensate and does so only partially: it explains credential_id (update trigger) and covers_financial_loss (tri-state boolean). It leaves coverage_per_year vs coverage_per_claim, valid_from/valid_until, currency, document_url, company_id and label entirely to an essentially undescribed schema.

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?

States a specific verb+resource ('Record or update one credential') and enumerates concrete credential types (liability policy, Berufsgenossenschaft membership, ISO certificate, register entry), which makes the tool's domain scope unambiguous. It does not explicitly distinguish itself from the sibling upsert_personnel_credential, which is the only differentiation gap.

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 credential_id to update' is an explicit, actionable rule that separates the create path from the update path, which is exactly the decision an agent must make for an upsert. It stops short of naming alternatives (e.g. list_company_credentials to obtain an existing credential_id) or stating when not to use this tool.

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