Skip to main content
Glama
us-all

datadog-mcp-server

get-spans-metric

Retrieve the definition of a specific span-based metric by its metric name. Use it to inspect or verify custom span metric configurations in Datadog.

Instructions

Get a specific span-based metric definition by name

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
metricIdYesThe name of the span-based metric. Example: spans.my_custom_count
Behavior2/5

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

No annotations are provided, so the description carries full burden for behavioral disclosure. The brief description omits details such as whether the metric must exist, what happens if not found, return format, or idempotency. For a read operation, basic safety is implied but not explicit.

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

Conciseness5/5

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

The description is a single, well-structured sentence that conveys the essential purpose without any unnecessary words. It is front-loaded and efficient, earning its place.

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?

Given the tool's simplicity (one parameter, no output schema) and the absence of annotations, the description is minimally adequate but lacks details on response behavior or error cases. A getter tool could benefit from stating what is returned or what happens on missing metric.

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 input schema already provides a description for the single required parameter metricId, achieving 100% coverage. The description adds value by including an example value ('spans.my_custom_count'), which clarifies the expected naming convention beyond the schema's general description.

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?

The description 'Get a specific span-based metric definition by name' clearly specifies the verb (Get), the resource (span-based metric definition), and the means (by name). This distinguishes it from sibling tools like list-spans-metrics, which lists all metrics, and create/update/delete actions.

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

Usage Guidelines3/5

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

The description implies usage context (retrieve a single metric by name) but provides no explicit guidance on when to use this tool versus alternatives like list-spans-metrics or other getters. No when-not-to-use or prerequisite conditions are stated.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/us-all/datadog-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server