Skip to main content
Glama

MCP server info

mcp_server_info
Read-onlyIdempotent

Returns server name, version, and runtime details to confirm the running OPA MCP instance, verify OPA, Regal, and Conftest binaries are reachable, and check allowed paths and usage reporting.

Instructions

Return the name, version, and runtime details of this opa-mcp server instance. Use this when you need to confirm which version of opa-mcp is running, to verify that the OPA, Regal, and Conftest binaries are reachable, or to see which directories file tools may use (allowedPaths) and whether they come from OPA_MCP_ALLOWED_PATHS or the client's roots. It also says whether the anonymous daily usage report is on.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.9.0
    • addedInput schema / additionalProperties
      Added value: +false
  2. Addedv0.1.13

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so safety is covered structurally. The description adds non-obvious context the annotations cannot: that allowedPaths origin is disclosed (OPA_MCP_ALLOWED_PATHS vs client roots) and that anonymous usage-report status is included, which matters for privacy-sensitive agents.

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 verb and the returned fields, then the use cases, with zero filler sentences. The second sentence is a long three-clause list that is dense but still scannable; it could be split for readability without losing content.

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?

With no output schema, the description carries the burden of describing return values, and it does enumerate the meaningful ones: name, version, runtime details, binary reachability, allowedPaths plus their source, and telemetry flag. Minor gaps remain about response shape or field naming, which an agent would only learn at call time.

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?

The tool takes zero parameters, and the schema is a closed empty object with additionalProperties=false, so there is no parameter meaning to add. Baseline for a no-parameter tool applies.

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 ('Return') and resource ('name, version, and runtime details of this opa-mcp server instance'), which unambiguously separates it from the policy/Rego/Conftest evaluation siblings. An agent can tell immediately this is an environment-introspection tool rather than a policy operation.

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 three concrete triggering conditions (confirm version, verify OPA/Regal/Conftest binaries are reachable, inspect allowedPaths provenance and telemetry state). It stops short of naming near-neighbor diagnostic siblings such as opa_health, opa_status, or opa_config, so the agent must infer which diagnostic to prefer when both could answer.

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