Skip to main content
Glama

devtune_get_outcomes_ledger

Read-onlyIdempotent

Get measured actions with authoritative improved, mixed, no_clear_change, declined, still_measuring and unmeasured results, the evidence behind each result (counts, active days, exposure and the chance of a shift that large), and a conclusive-measurement improvement rate. Each Results item carries method v1 or v2 once closed with evidence, and null while open. Agent Picks rows have null method and retain their own agentPicks.method. A live lookalike action (reporting a site imitating the customer) carries lookalike: the site as text, and answers checked, answers citing it and the rate in the 14 days before and after going live, per platform and overall (overall sums the platforms checked in both windows), with each result; a fall is improved, mixed means platforms moved in opposite directions and otherwise the overall result follows the overall rate, a platform without answers checked in a window is unmeasured, a window older than the 181 retained days is unmeasured, and its method is null. Present only while the account has lookalike sites. Closed results keep their method. New closes use v2: only full-window evidence can conclude, citations compare the same live prompt/platform cohort in both windows, fetch exposure counts sensor-covered days, and the count test allows for daily-count overdispersion. A v2 metric without full coverage keeps its counts with direction null and is not compared. Reporting windows filter actions; comparisons use fixed 14-day before/after windows. Each item includes overlappingActions per page and comparison window, listing other completed actions with actionId, title and completedAt. With interventionId, top-level overlappingActions covers that measurement’s 7, 14, 30 and 90 day comparisons, even outside the selected ledger cohort. Each comparison has state available with an actions array, or unavailable with actions null if the supplementary check failed; measurements still load. Shared page movement cannot be attributed to this action alone. Also returns analytics-attributed conversions for fixed 30 and 90 day windows. If the measurement detail read fails, top-level overlappingActions contains one unavailable entry with actions=null and no page/window metadata. Redirect-shipped missing-page actions include evidence.redirect404 with requestedPath, hosts, before/after 404 request counts and fixed-window bounds, status-coverage day counts, source and generation. Its state uses 404 rows observed before each capture: stopped (observed before, none after), still_happening (observed in both), or unmeasured (incomplete status coverage, unknown request hosts, open window or no baseline 404s). A later counter increase nulls that count with reason counter_changed and preserves a known state. Both windows require coverage on every UTC date for every requested host; the browser snippet cannot measure 404s. This separate metric never changes the overall result. A saved suggested destination identifies a redirect; a saved requested URL requires an observed 3xx response and no 2xx responses across the requested hosts after the window closes. Other actions omit the field. A shipped robots.txt unblock Action includes evidence.agentScope on one active measurement (its earliest page still published): the hosts of its drafted robots.txt files, and for each unblocked provider and bot class the requests across every document path on the hosts whose own robots.txt file unblocked it (agents[].hosts; never a host that still blocks it) in the fixed before/after windows, recorded at window close. Answer fetchers count answer fetches and index bots count crawls; neither is added to the other. Entries merge crawlers of the same provider and class (for example Claude-User and Claude-Web), never per user-agent token. Counts are null with state unmeasured while the window is open (window_open), or unless a Cloudflare log pull on the exact hostname or edge middleware reporting on that exact host every day covered every host for both windows (no_sensor, partial_coverage); a www host and its bare domain are separate hosts; the browser snippet cannot see these requests. coverage (overall, per host in hosts[] and per agent line) is verified when a whole-site Cloudflare log pull covered the exact host, or sensor_reported when edge middleware reported on it every day without proof it sees every path; describe sensor_reported counts as seen by the edge sensor, not verified. A day with no accepted edge event leaves the window unmeasured. Historical (as-of) reads omit agentScope. This separate metric never changes the overall result.

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

Input Schema

NameRequiredDescriptionDefault
limitNoThe same setting as pageSize. Send either.
cursorNoOpaque cursor from the previous response; cursors expire after ~48 hours.
sourceNoFilter Actions and Outcomes by source; both is the default
statusNo
pageSizeNoResults per page (1-100). Defaults to 25.
windowDaysNoFixed rolling window in days: 7, 30, 90, or 365. Defaults to 30.
interventionIdNoInclude 7, 14, 30 and 90 day impact windows (citations, presence and answer fetches) for this completion-based measurement.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / interventionId / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
    • removedInput schema / properties / limit / $ref
      Removed value: -"#/properties/pageSize"
    • addedInput schema / properties / limit / maximum
      Added value: +100
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • addedInput schema / properties / limit / type
      Added value: +"integer"
    • changedInput schema / properties / windowDays / anyOf
      Previous value: -[
      -  {
      -    "enum": [
      -      "7",
      -      "30",
      -      "90",
      -      "365"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "enum": [
      -      7,
      -      30,
      -      90,
      -      365
      -    ],
      -    "type": "number"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "7",
      +      "30",
      +      "90",
      +      "365"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "anyOf": [
      +      {
      +        "const": 7,
      +        "type": "number"
      +      },
      +      {
      +        "const": 30,
      +        "type": "number"
      +      },
      +      {
      +        "const": 90,
      +        "type": "number"
      +      },
      +      {
      +        "const": 365,
      +        "type": "number"
      +      }
      +    ]
      +  }
      +]
  2. Changed1 schema field changed
    • addedInput schema / properties / cursor / maxLength
      Added value: +12288
  3. Changed1 schema field changed
    • addedInput schema / properties / limit
      Added value: +{
      +  "$ref": "#/properties/pageSize",
      +  "description": "The same setting as pageSize. Send either."
      +}
  4. Changed1 schema field changed
    • addedInput schema / properties / source
      Added value: +{
      +  "description": "Filter Actions and Outcomes by source; both is the default",
      +  "enum": [
      +    "ai_search",
      +    "agent_picks",
      +    "both"
      +  ],
      +  "type": "string"
      +}
  5. Changed1 schema field changed
    • changedInput schema / properties / interventionId / description
      Previous value: -"Include 7, 14, 30 and 90 day impact windows for this completion-based measurement."New value: +"Include 7, 14, 30 and 90 day impact windows (citations, presence and answer fetches) for this completion-based measurement."
  6. Changed1 schema field changed
    • changedInput schema / properties / status / enum
      Previous value: -[
      -  "measured",
      -  "in_flight",
      -  "blind",
      -  "unmatched_url",
      -  "sensor_gap",
      -  "win",
      -  "loss",
      -  "still_measuring",
      -  "unmeasured",
      -  "conclusive"
      -]New value: +[
      +  "measured",
      +  "in_flight",
      +  "blind",
      +  "unmatched_url",
      +  "sensor_gap",
      +  "improved",
      +  "mixed",
      +  "no_clear_change",
      +  "declined",
      +  "still_measuring",
      +  "unmeasured",
      +  "conclusive"
      +]
  7. Changed1 schema field changed
    • addedInput schema / properties / interventionId
      Added value: +{
      +  "description": "Include 7, 14, 30 and 90 day impact windows for this completion-based measurement.",
      +  "format": "uuid",
      +  "type": "string"
      +}
  8. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the bar is lower, yet the description still adds substantial behavior: null method while open, v1 vs v2 closing rules, unavailable comparison entries when the supplementary check fails, and explicit degraded behavior when the measurement detail read fails. It also warns that shared page movement cannot be attributed to one action and that substatus metrics never change the overall result. The disclosure is strong but delivered as an undifferentiated stream, which makes specific traits hard to retrieve.

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

Conciseness2/5

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

This is a single ~700-word run-on block dense with nested clauses and parentheses, with no grouping of ledger results, lookalike evidence, redirect404, and agentScope into separable units. Only the first sentence is genuinely front-loaded; everything after it is a wall the agent must parse linearly. Much of the content is valuable but is sized for reference documentation, not a tool description.

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 full burden of explaining return shape, and it does so comprehensively: per-result fields, evidence counts, coverage states, and multiple failure/degradation paths. Gaps remain around pagination behavior, ordering, and whether the improvement rate is scoped by source/window, but the coverage is unusually thorough for a tool this complex.

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 schema already documents 86% of the 7 parameters, so the baseline is 3; the description adds real meaning beyond that by explaining that windowDays filters the action cohort while comparisons stay on fixed 14-day windows, and that interventionId pulls 7/14/30/90 day comparisons even for measurements outside the selected cohort. source and status enum semantics are left entirely to the schema.

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 opening sentence names a specific verb and resource — 'Get measured actions with authoritative ... results' — plus the evidence bundle and improvement rate it returns, so an agent knows it is the outcomes/ledger reader rather than a raw action list. It never distinguishes itself from siblings such as devtune_get_actions or devtune_get_action_events, so the agent must infer the boundary from the name alone.

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 any alternative, no prerequisites, and no exclusion criteria. The only conditional guidance is mechanical ('Reporting windows filter actions; comparisons use fixed 14-day before/after windows', and what interventionId adds), which explains output shape rather than tool selection.

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.

Resources