Skip to main content
Glama

cfg_whoami

Reports the resolved identity, environment, database, permission role, and identity mode for a selected config, so you can verify which database and credentials cfgit will use.

Instructions

Report the resolved identity, env, database, permission role, and identity mode.

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

Input Schema

NameRequiredDescriptionDefault
envNoEnvironment name from .cfg.toml (e.g. dev, prod). Selects the target database.dev
authorNoAuthor attribution hint. Ignored/rejected in authenticated/enforced identity modes where a verified identity is required.
config_fileNoOmit: the server uses the .cfg.toml it started with. A different path is refused unless the server runs with CFGIT_MCP_ALLOW_CONFIG_OVERRIDE=1.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.5

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it only lists what is reported. It never states that the call is read-only, that it has no side effects, whether it requires a running server with a loaded .cfg.toml, or what happens in enforced identity mode. Enumerating returned fields adds little since an output schema already exists.

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?

A single front-loaded sentence with no filler or hedging. It is efficient, though the field enumeration duplicates the output schema and consumes the space that could have carried usage or safety context.

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?

An output schema exists, so return values need no explanation, and the parameter schema is fully documented. What remains missing for a zero-required-param introspection tool is the read-only/behavioral framing and any pointer to sibling diagnostics, leaving the definition minimally adequate rather than complete.

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%; all three parameters carry defaults and detailed notes, including that author is ignored in authenticated/enforced modes and that config_file overrides are refused without CFGIT_MCP_ALLOW_CONFIG_OVERRIDE=1. The description adds nothing about parameters beyond what the schema already states, so baseline 3 applies.

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?

The description uses a specific verb ("Report") and enumerates the resource fields it resolves: identity, env, database, permission role, and identity mode. That makes the tool's function legible at a glance. It stops short of distinguishing itself from near-neighbors like cfg_status, cfg_show, or cfg_identity_hash, so an agent must still infer the boundary.

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

Usage Guidelines2/5

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

There is no statement of when to call this versus cfg_status, cfg_show, or cfg_identity_hash, and no exclusions or prerequisites. The only implied guidance is the word "resolved," which hints at effective/merged config inspection. That is inference, not instruction.

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