Skip to main content
Glama

Currency ZAR

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

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the burden. 'Values discarded' usefully reveals that the tool is read-only with respect to the value data, and 'count' implies no mutation; however, it does not disclose the return shape, behavior on invalid JSON, or whether nested keys are included.

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?

The definition is only two short sentences with an action verb first and no filler. It is easy to parse, though extremely terse.

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?

The lack of annotations and output schema raises the bar, and the tool has nine optional parameters with no required one. The definition never tells the agent which parameter holds the JSON text, what the count refers to (top-level vs recursive), or what is returned; that makes it incomplete despite the short clear purpose.

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 the baseline applies: the description need not repeat every parameter. Still, the only likely candidate for the 'JSON object' is the json parameter, and that field is described in the schema as 'validate', not 'count'; the description never names the parameter that should actually be supplied.

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?

States a concrete operation (count keys) on a specific resource (a JSON object) and adds a behavioral qualifier (values discarded). It is unambiguous at a high level, but it does not name the relevant schema parameter or distinguish itself from validate-json explicitly, so it stops short of top marks.

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?

Use is only implied by the verb 'count': an agent would reach for it when it needs a key count. There is no explicit when-not-to-use statement, no mention of validate-json as the choice for merely checking validity, and no guidance among the nine optional parameters.

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.