Skip to main content
Glama

memory-key-count

Count keys in a JSON object. Values discarded.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refNoGit ref name; discarded after the shape check
urlNoHTTPS URL to normalize or cite
cityNoCity name for a public weather hint; discarded after the call
feedNoPublic RSS or Atom URL; titles discarded
hostNoPublic hostname
jsonNoJSON text to validate; discarded after the check
pathNoFile path to check; no disk access
zoneNoIANA timezone name
queryNoSearch text; discarded after the length check

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations at all, the description carries the full burden of behavioral disclosure. It offers 'Values discarded' as a behavioral trait, and the schema repeats 'discarded' notes for many parameters, but it never explains what happens with the JSON object's structure, how the result is returned, error behavior, or why a JSON 'count' tool would even accept url/city/zone/query inputs. The overarching behavior of the tool remains opaque.

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 short sentences with zero filler; the purpose is front-loaded in the first sentence. Every word earns its place. The slight demotion is for omitting the critical clarification of how the JSON object is provided, which the ultra-brevity sacrifices.

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?

For a 9-parameter tool with no output schema and no annotations, the description is markedly incomplete. It fails to identify the actual input carrying the JSON object to count, offers no return-value description, and gives no hint as to why 8 unrelated-parameter slots exist. An agent could not confidently construct a correct call from this definition.

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 description coverage is 100%, so the baseline of 3 applies. The description adds the framing 'Count keys... Values discarded' that colors how all parameters should be interpreted, and it correctly matches the schema's own 'discarded after' notes. However, it does not clarify which parameter (if any) supplies the JSON object for key counting, leaving the central semantic gap unresolved.

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 description states a specific action ('Count keys in a JSON object') with an explicit modifier ('Values discarded'), giving a clear core purpose. However, the purpose is undermined by the input schema: none of the 9 parameters represents the JSON object to count, and the closest candidate 'json' is described as 'JSON text to validate' rather than the object whose keys are counted. This disconnect between stated purpose and actual inputs blurs the resource being operated on.

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?

No guidance is provided on when to use this tool versus alternatives. Siblings like validate-json, lang-sn, and search-query-len all plausibly overlap with 'JSON/key' concerns, yet the description gives no selection criteria. The odd mix of parameters (ref, url, city, feed, host, path, zone, query) that resemble inputs from unrelated sibling tools further obscures the intended usage context.

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.