Skip to main content
Glama

contract_folder_agent_template

Read-only

Template (Ticket c7db227d Punkt 12) for the scheduled agent 'Vertragsablage überwachen': returns ready-to-use provision_agent arguments (server_job, every 15 minutes, 07–19 h, Mon–Fri) whose run is: scan_contract_folder → import_contract_from_folder ONLY for bundles with bereits_erfasst=false (asynchronous; poll get_contract_import) → uncertain results (zu_pruefen / unsichere_felder / uebersprungene_dateien) become ONE todo per contract — plus the set_contract_scan_rules call that stores the DAILY AI COST LIMIT (max_imports_per_day: each import is one AI extraction; import_contract_from_folder refuses further imports that day once reached). Creates NOTHING itself: review, then call provision_agent and set_contract_scan_rules with the returned arguments. Required: bridge, folder. Optional: path, our_names, max_imports_per_day (default 20), name (default 'Vertragsablage überwachen').

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": {
      "bridge": "<bridge>",
      "folder": "<folder>"
    },
    "name": "contract_folder_agent_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoName of the agent (default Vertragsablage ueberwachen)
pathNoSubfolder inside folder
bridgeYesBridge slug of the connected computer to monitor
folderYesAllowed folder of that bridge to monitor
our_namesNoHow we appear in contracts (decides our role)
max_imports_per_dayNoDaily cap on imports for the cost limit (default 20)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / bridge / description
      Added value: +"Bridge slug of the connected computer to monitor"
    • addedInput schema / properties / folder / description
      Added value: +"Allowed folder of that bridge to monitor"
    • addedInput schema / properties / max_imports_per_day / description
      Added value: +"Daily cap on imports for the cost limit (default 20)"
    • addedInput schema / properties / name / description
      Added value: +"Name of the agent (default Vertragsablage ueberwachen)"
    • addedInput schema / properties / our_names / description
      Added value: +"How we appear in contracts (decides our role)"
    • addedInput schema / properties / path / description
      Added value: +"Subfolder inside folder"
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations declare readOnlyHint=true and openWorldHint=false, and the description is fully consistent, reinforcing that it creates nothing. Beyond the annotations it discloses real behavioral context: the run is asynchronous and requires polling get_contract_import, uncertain results collapse into ONE todo per contract, and max_imports_per_day is an enforced daily AI cost limit that makes import_contract_from_folder refuse further imports once reached.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is valuable but delivered as one long run-on sentence chained with arrows, em-dashes and parentheses, which makes it harder to scan. The opening '(Ticket c7db227d Punkt 12)' is internal bookkeeping noise that does not help an agent decide or invoke, though the actionable constraints are front-loaded reasonably well.

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?

For a template-generator tool with no output schema, the description covers what is returned (provision_agent arguments plus the set_contract_scan_rules call), the schedule (every 15 min, 07–19 h, Mon–Fri), the run logic, the async polling requirement and the cost cap. Nothing an agent needs to invoke it correctly or to act on the result is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the schema already documents all six parameters and a 3 would be the baseline. The description adds meaning on top: it splits required vs optional, states the defaults (20 imports/day, name 'Vertragsablage überwachen'), and explains that each import is one AI extraction charged against the daily cost limit, which is not evident from the schema alone.

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 concrete outcome: it returns ready-to-use provision_agent arguments for a scheduled contract-folder agent, and explicitly separates itself from the siblings that actually act (provision_agent, set_contract_scan_rules, import_contract_from_folder). The 'Creates NOTHING itself' clause makes the resource/verb boundary unmistakable, so an agent can distinguish it from provision_agent without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit workflow: review the returned arguments, then call provision_agent and set_contract_scan_rules with them. It also names the downstream pipeline (scan_contract_folder → import_contract_from_folder → poll get_contract_import) and the condition under which imports are skipped (bereits_erfasst=false), so the agent knows both when to call this and what to do next.

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.