Skip to main content
Glama
OpenCDR MCP

OpenCDR MCP

Official
by dbnz-io

opencdr_settings_get

Read-onlyIdempotent

Retrieves an OpenCDR settings document by ID, defaulting to global, for read-only inspection; specify agent_id in fleet mode and omit it in core mode.

Instructions

Get an OpenCDR settings document by id (default: global). Read-only.

In fleet mode, supply agent_id explicitly. Core mode leaves agent_id unset.

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

Input Schema

NameRequiredDescriptionDefault
agent_idNo
setting_idNoglobal

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.0
    • addedInput schema / properties / agent_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Agent Id"
      +}
  2. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so 'Read-only' in the description is largely redundant. What the description does add beyond annotations is the fleet-versus-core tenancy context, which is genuinely useful. It says nothing about behavior for a missing or unknown setting_id, or about what the returned document contains.

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?

Three short sentences with the core purpose front-loaded and the mode guidance immediately after; nothing is buried. 'Read-only' duplicates the annotation and is the only near-wasted phrase.

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

Completeness3/5

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

For a two-parameter, no-output-schema getter, the definition covers the essentials of how to invoke it and the fleet/core distinction. It leaves open what identifiers are valid for setting_id and how failures surface, which an agent would need to call this confidently.

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 0%, so the description carries the burden. It explains agent_id semantics (must be explicit in fleet mode, unset in core mode) and repeats the 'global' default for setting_id, but does not say what a valid setting_id looks like or what settings documents are available.

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 and resource: 'Get an OpenCDR settings document by id', with the default setting_id named as 'global'. It is clearly a read of a single settings document, though it does not distinguish itself from adjacent configuration readers such as opencdr_configuration_flags or opencdr_configuration_ownership.

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?

Gives explicit conditional guidance for the key parameter: supply agent_id explicitly in fleet mode, leave it unset in core mode. That is clear operational context, but there is no statement of when to choose this tool over sibling settings/configuration readers.

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