Skip to main content
Glama

runmeter_record

Log an LLM/agent run with tokens, latency, and status; auto-calculate cost from pricing table or explicit USD, then return the stored row.

Instructions

Record a single LLM/agent run and return the stored row.

Cost is taken from cost_usd when provided; otherwise it is computed from the built-in pricing table (USD per 1M tokens) when the model is known. If the model is unpriced and no cost is given, cost is stored as null and the response notes that the model is unpriced so you can extend the table.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
runYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

The description adds substantial value beyond the basic annotations by detailing cost-handling logic: explicit cost_usd takes precedence, otherwise computed from a pricing table, and unpriced models result in null cost with a response note. This helps the agent predict behavior without contradicting the annotations.

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 two short paragraphs, front-loaded with the core purpose, and every sentence provides meaningful detail (explicit vs computed cost, unpriced behavior). No wasted words.

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?

The description covers the primary behavior and a key edge case (unpriced model), while return format is covered by the output schema. It does not mention required fields or validation, but those are already in the schema, so the description is sufficiently complete for the tool's simplicity.

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?

The description enriches the meaning of cost-related parameters (e.g., what happens if the model is unpriced) that the schema does not fully cover. However, it does not explain the overall `run` object structure or other parameters, and the top-level schema coverage is 0%, so compensation is partial.

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 states a specific action ('Record a single LLM/agent run') and the resource targeted, plus the outcome ('return the stored row'). This clearly distinguishes it from sibling tools like runmeter_list or runmeter_get, which read or summarize data.

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 that this tool is for logging new runs, but it does not explicitly state when to use it versus alternatives. No mention of prerequisites or exclusions, so the usage context is implied rather than directly guided.

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/Aptica-Solutions/a-mcp-runmeter'

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