Skip to main content
Glama
Koderkup

mcp-context-optimizer

ingest_records

Add structured messages, tool calls, errors, files, diffs, test results, decisions, and notes to a local in-memory context store; validates entries and skips malformed records.

Instructions

Add structured records (messages, tool calls, errors, files, diffs, test results, decisions, notes) to the local in-memory context store. Records are validated; malformed entries are reported and skipped.

Input Schema

NameRequiredDescriptionDefault
recordsYesArray of records; each must have a "kind" field plus kind-specific fields.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.9

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does add real behavioral content: the store is "local" and "in-memory" (so writes are ephemeral), records are validated, and malformed entries are reported and skipped rather than aborting the call. It stops short of stating idempotency, duplicate handling, or size limits.

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

Conciseness5/5

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

Two sentences, no filler, and the payload kinds and validation behavior are front-loaded so an agent can decide and call after one read.

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

Completeness3/5

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

The description covers the most important unknowns for a mutation tool (ephemeral store, partial-failure semantics), but with no output schema it never says what a successful call returns or what the malformed-entry report looks like. For a one-parameter tool this is adequate but leaves a real gap around the response.

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% and there is a single parameter, so the schema already explains the array and the required "kind" field. The description's kind list restates the enum rather than adding syntax or per-kind field requirements.

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?

"Add structured records ... to the local in-memory context store" gives a specific verb plus resource and enumerates the eight record kinds, which maps directly onto the schema enum. It never names the retrieval siblings (build_context, search_context), but the write-vs-read split is obvious enough from the wording.

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?

There is no explicit when-to-use statement, no mention of ordering relative to build_context, and no guidance on batching versus repeated calls. Usage is only implied by the fact that it is the sole write-side tool among read/retrieval siblings.

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