Skip to main content
Glama

List contracts

list_contracts
Read-onlyIdempotent

List the contracts filed in this account (documents with document_type 'contract': Mietvertrag, Mieterrechnung, Darlehens-/Gesellschaftervertrag …) with their terms from metadata.contract — nummer, beginn, ende (null = unbefristet), betrag per turnus, kuendigungsfrist, notiz and the sevDesk voucher ids (belege) booked under the contract. Read-only. Contracts are Dauerbelege for recurring bookings and are never pushed to sevDesk. File a new one with create_invoice_upload_url document_type:'contract'; change the terms with update_document (metadata.contract).

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax rows (default 100, max 500).
active_onNoOnly contracts running on this date (YYYY-MM-DD): beginn <= date and ende empty or >= date.
vendor_nameNoOnly contracts whose Vertragspartner (vendor_name) contains this text, case-insensitive.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, so the bar is lower, yet the description adds real domain behavior: contracts are Dauerbelege for recurring bookings and are never pushed to sevDesk. It also explains a data convention the annotations cannot (ende null = unbefristet). No pagination or ordering behavior is mentioned, but limit defaults are in the schema.

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 purpose, then the returned field list, then sibling routing; every sentence carries information. The long parenthetical field enumeration ('nummer, beginn, ende ..., betrag per turnus, kuendigungsfrist, notiz') is dense but justified since there is no output schema.

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

Completeness5/5

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

No output schema exists, and the description compensates by naming the returned contract fields and the meaning of ende=null along with the linked sevDesk voucher ids (belege). Combined with full schema coverage for the three filters, an agent has everything needed to select and call it correctly.

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 clear semantics for limit, active_on and vendor_name already documented in the schema. The description adds no parameter-level detail (e.g. how active_on interacts with unbefristet, or sort order), so the baseline 3 applies; its value goes to return-field semantics instead.

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?

States a specific verb and resource ('List the contracts filed in this account') and immediately disambiguates what counts as a contract (documents with document_type 'contract', with German examples). It further pins down the subset versus a generic document listing, so an agent can distinguish it from list_documents without opening a 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?

Explicitly routes the write paths: creating a contract goes to create_invoice_upload_url with document_type 'contract', changing terms goes to update_document (metadata.contract). It does not explicitly state when to prefer list_documents instead, but the contract-only scope makes the boundary reasonably clear.

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