Skip to main content
Glama

diff_profiles

Read-only

Compare two profiles field by field to identify differences across scalars, tools, data sources, MCP servers, sub-agents, and prompt lineage for auditing or change review.

Instructions

Field-by-field diff of two profiles a -> b (scalars, tools, data sources, MCP servers, sub-agents, prompt lineage). Pass the pair as ids=[a, b] (the convention every pair-taking tool shares) or as profile_a/profile_b.

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

Input Schema

NameRequiredDescriptionDefault
envNoConfig branch: which `environment` rows of the AI config DB to read/write. staging = the editable working set (default); prod = what production serves.staging
idsNoThe pair as [a, b] profile ids — same as profile_a/profile_b.
profile_aNoFirst profile of the pair (or use ids=[a, b]).
profile_bNoSecond profile of the pair (or use ids=[a, b]).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, and the description is consistent with that, adding useful scope detail: the comparison spans scalars, tools, data sources, MCP servers, sub-agents, and prompt lineage, plus a directional a -> b framing. With an output schema present and a read-only annotation, that is a solid amount of extra context; it does not mention cost, size limits, or handling of missing profiles.

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?

Two sentences, both earning their place: the diff scope is front-loaded and the argument convention follows. The parenthetical list of compared artifacts is long but informative rather than redundant. Minor cost is the density of the parentheses.

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 tool is a read-only, four-parameter diff with an output schema, so return values need no explanation. The description covers what is compared and how to supply the pair, which is the essential information for correct invocation. Missing only edge-case behavior, such as what happens if one id does not exist or if the same id is passed twice.

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?

Schema coverage is 100%, so all four parameters are already documented, including that ids is "the same as profile_a/profile_b" and the env branch meaning. The description reinforces the pair convention shared across tools but adds little that the schema does not already state about argument formats. Baseline 3 applies when the schema carries the semantics.

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?

Names a specific verb and resource ("Field-by-field diff of two profiles a -> b") and enumerates the compared surface: scalars, tools, data sources, MCP servers, sub-agents, prompt lineage. That is enough for an agent to know exactly what it produces. It does not differentiate itself from nearby tools such as drift_check or get_profile, which keeps it short of a 5.

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 gives calling convention guidance ("Pass the pair as ids=[a, b] ... or as profile_a/profile_b") but no when-to-use guidance. It never says when to reach for this instead of reading two profiles individually or using a drift/parity sibling. Usage is implied by the tool's purpose rather than stated.

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