Skip to main content
Glama

Entity diff between two dates

entity_diff
Read-onlyIdempotent

What changed on an entity's record between two days: its state on from against its state on to (today when omitted), compared by claim. added: facts held on to and not on from. ended: held on from, not on to, and not replaced. replaced: the same predicate with another value, the claim that held on from beside the one that holds on to (paired by the record's superseded_by pointer, when the predicate has exactly one of each and the new value begins the day the old one ends, or when the predicate has one holder at a time, such as ceo, chair, cfo or headquarters, and one holder ended while another began). unchanged counts the claims held on both days; by_predicate gives each predicate's counts; summary is the one sentence the page /record/{slug}/diff leads with: quote it. Rows carry the fields entity_state rows carry; added rows are labelled for to, ended rows for from. Posts and Hugging Face repos are counted (skipped_posts), not listed: changes_since lists them. counts, by_predicate and summary cover the whole diff; the rows are paged in the order replaced, added, ended (limit default 50, max 200; offset pages; complete: false and next_offset say there is more). group: true reads the entity's company group (as in entity_state), each row naming its record. from must be before to.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "entity": "<entity>",
      "from": "<from>"
    },
    "name": "entity_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoThe later day, ISO date YYYY-MM-DD; today when omitted
fromYesThe earlier day, ISO date YYYY-MM-DD
groupNoCompare the entity's company group (Google with Alphabet, Google DeepMind, Gemini...)
limitNoRows per page across replaced, added and ended (max 200)
detailNocompact: each row is id, predicate, value, qualifier, the dates it held, status, why_not when the record does not assert it, and the primary source URL: about a fifth the size, so a page holds five times the rows. Left out: published, recorded, confidence, citation, evidence (each is on the claim page, https://asof.is/claim/{id}, or the claim tool). full (the default): every field.full
entityYesEntity slug, e.g. openai
offsetNoSkip this many rows (next_offset from the previous page)

Output Schema

NameRequiredDescriptionDefault
pageNoThe page on asof.is that states the same answer
addedNo
endedNo
legendNoWhat the row fields and why_not codes mean
summaryNoWhat changed between the two days, as one sentence to quote
completeNofalse when rows remain: ask again with next_offset
replacedNo
returnedNo
remainderNo
next_offsetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "added": {
      +      "type": "array"
      +    },
      +    "complete": {
      +      "description": "false when rows remain: ask again with next_offset",
      +      "type": "boolean"
      +    },
      +    "ended": {
      +      "type": "array"
      +    },
      +    "legend": {
      +      "description": "What the row fields and why_not codes mean",
      +      "type": "object"
      +    },
      +    "next_offset": {
      +      "type": "integer"
      +    },
      +    "page": {
      +      "description": "The page on asof.is that states the same answer",
      +      "type": "string"
      +    },
      +    "remainder": {
      +      "type": "string"
      +    },
      +    "replaced": {
      +      "type": "array"
      +    },
      +    "returned": {
      +      "type": "integer"
      +    },
      +    "summary": {
      +      "description": "What changed between the two days, as one sentence to quote"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / detail
      Added value: +{
      +  "default": "full",
      +  "description": "compact: each row is id, predicate, value, qualifier, the dates it held, status, why_not when the record does not assert it, and the primary source URL: about a fifth the size, so a page holds five times the rows. Left out: published, recorded, confidence, citation, evidence (each is on the claim page, https://asof.is/claim/{id}, or the claim tool). full (the default): every field.",
      +  "enum": [
      +    "full",
      +    "compact"
      +  ],
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses the classification rules (added, ended, replaced with the superseded_by pairing condition and single-holder predicates like ceo or headquarters), that unchanged is only a count, that posts/repos are counted but not listed, and the exact row ordering plus paging contract (complete: false, next_offset, 50 default / 200 max). This is unusually rich behavioral disclosure for a read-only tool.

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

Conciseness3/5

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

It is front-loaded with the definition, which is good, but it is delivered as one dense block with a single sentence about replaced spanning several clauses and nested conditions. Nearly every clause carries information, yet the lack of sentence breaks around paging and group mode makes it harder to scan than it needs to be.

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

Completeness5/5

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

For a 7-parameter, paged, multi-mode diff tool, the description covers classification semantics, pagination, group mode, date validation, and the summary field, and it even explains return-value shape despite an output schema existing. Nothing an agent needs in order to call it correctly appears to be missing.

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?

Schema coverage is 100%, so the schema already carries most parameter meaning. The description still adds value the schema does not: the from-before-to validation constraint, the row ordering that offset paging follows, and the fact that counts/by_predicate/summary are computed over the whole diff rather than the current page — important for interpreting limit/offset.

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 opening clause names a specific verb and resource: 'What changed on an entity's record between two days', then defines the comparison axis (state on from vs. state on to, compared by claim). It also implicitly distinguishes itself from entity_state (same state semantics) and explicitly delegates posts/HF repos to changes_since, so an agent can place it among siblings without opening schemas.

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?

It gives clear operating context: 'to' defaults to today, 'group: true reads the entity's company group (as in entity_state)', 'from must be before to', and it explicitly routes non-listed changes to changes_since ('Posts and Hugging Face repos are counted (skipped_posts), not listed'). What's missing is an explicit when-not statement, e.g. that entity_state alone should be used for a single-day snapshot rather than a diff.

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