Skip to main content
Glama

metrics_create

Create a metric with evaluation criteria. For a deterministic check set metric_type:"check" and check_config. Per-kind required keys: value (contains/not_contains/equals), pattern (regex), json_path+expected (json_path_equals), min and/or max (length_bounds); valid_json takes no extra keys. target_path is required when target is json_path. For contains, not_contains, and equals, set compare_to:"expected" to grade against each row's own expected_output (ground truth) instead of a constant value (drop value); add expected_path to dig into the expected value when it is JSON.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
tag_namesNo
instructionNo
metric_typeNo
check_configNo
rubric_bandsNo

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the burden of behavioral disclosure. It explains the behavior of different check kinds (contains, regex, equals, etc.), how compare_to works, and when target_path is required. It also clarifies how expected values are graded. This is substantial added context, though it doesn't cover every possible side effect (e.g., return values, permissions), which would push it higher.

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?

The description is a single dense paragraph but front-loads the purpose before diving into configuration details. It is information-dense without being redundant, though bullet points or clear section breaks would improve readability. Every sentence adds value and doesn't waste words, so it earns a 4 rather than a 5.

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

Completeness2/5

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

Given the tool's complexity (nested check_config, enum metric_type, no annotations, no output schema), the description is incomplete. It fully details the 'check' metric type but gives no guidance for the 'llm_judge' type, leaving rubric_bands and instruction parameters unexplained. It also omits any mention of return values or errors. For a create tool with this much complexity, a 2 is appropriate because major areas are unaddressed.

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 has 0% description coverage, so the description must compensate. It thoroughly explains check_config parameters like value, pattern, min/max, json_path, compare_to, and expected_path, and distinguishes between constant and expected comparisons. However, it does not explain simpler parameters like name, tag_names, instruction, or rubric_bands, leaving some gaps, but the complex parameters are well covered.

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 clearly states 'Create a metric with evaluation criteria' with specific verb and resource. It distinguishes from sibling tools like metrics_update by focusing on creation, and provides a detailed breakdown of configurable check kinds and their required keys, making its purpose unambiguous.

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?

The description gives clear guidance on when to use the tool (for creating metrics) and provides detailed configuration instructions for deterministic checks, including required keys per check kind and how to compare against expected values. However, it does not explicitly compare against alternative tools like metrics_update or mention scenarios where creation is inappropriate; the guidance is tool-internal rather than cross-tool, so it's not a full 5.

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.

TDQS

B3/5.0
Disambiguation5/5

Each tool targets a distinct resource and action, with clear separation across agreements, datasets, judges, metrics, prompts, runs, tags, and usage. Even similar tools like datasets_create vs datasets_create_from_url and runs_generate vs runs_rerun are explicitly differentiated in their descriptions.

Naming Consistency5/5

The overwhelming majority of tools follow a consistent plural_resource_action snake_case pattern (e.g., datasets_create, metrics_update, runs_retry_failures). The only slight deviation is promptfoo_import, but it is still descriptive and does not break the overall predictability.

Tool Count1/5

With 54 tools, the server far exceeds the 25+ threshold considered too many, and approaches the 50+ extreme mismatch level. Even for a broad LLM evaluation platform, this count is excessive and likely to overwhelm agents, making tool selection more error-prone.

Completeness4/5

The toolset provides full CRUD for core resources (datasets, metrics, prompts, runs, tags) plus lifecycle operations like publish, generate, regrade, and retry. It also includes cross-cutting utilities (usage, import, provider credentials). Minor gaps exist, such as no update/delete for agreements and no cross-run response search, but these are non-essential for the primary workflows.