Skip to main content
Glama

pre_action_check

Check for conflicts or overlaps in shared leases and intents before acting on a resource, so multiple AI tools avoid editing the same files.

Instructions

Check for conflicts or overlaps before performing an action against shared leases and intents.

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": {
      "resource": "<resource>",
      "intent": "<intent>"
    },
    "name": "pre_action_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
intentYes
resourceYes
holder_sessionNoFilled in by the Memro hooks; leave it out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.3

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and largely drops it: it never states whether the check is read-only, whether it blocks or merely reports, what happens when a conflict is found, or whether the check reserves anything. Only 'shared leases' hints at multi-session side effects, and that term is undefined.

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?

A single front-loaded sentence with no filler or repetition. It is well-formed, though its brevity comes at the cost of content rather than from ruthless editing.

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 three-parameter, no-annotation, no-output-schema tool whose purpose is to gate other actions, the definition should at minimum explain what the result means and what to do on conflict. As written, an agent knows roughly the intent but not enough to call it correctly or interpret the outcome.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 33%: only holder_session is annotated (and only to say to omit it). The two required parameters, resource and intent, are bare strings, and the description does not clarify expected format, scope (a path? an ID? a free-text intent?), or how they relate to the 'shared leases and intents' mentioned. The description fails to compensate for the coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The verb 'Check' plus the object 'conflicts or overlaps' gives a recognizable pre-flight validation intent, but the qualifier 'against shared leases and intents' is abstract and never explains what a 'lease' is or what a successful vs. conflicting result looks like. It does not distinguish itself from siblings such as find_contradictions, claim_task, or log_intent, so an agent must guess at the boundary.

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?

'before performing an action' implies a timing cue (call this prior to a mutating step), which is real but thin guidance. There are no explicit when-not conditions and no named alternatives, so an agent cannot tell whether this supersedes or complements claim_task or log_intent.

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