Skip to main content
Glama

extract_rules_from_transcript

Extract candidate coding rules from transcripts by returning clean text, project scopes, existing rules for duplicate checks, and the canonical template; then create a pending proposal per candidate.

Instructions

Return everything the calling LLM needs to extract candidate rules from a transcript: the clean text, the project's scope chain with attributes, existing rules for duplicate detection, and the canonical rule template. Does not itself create any proposal — call create_pending_proposal per candidate.

Access level: analyze. Returns: JSON with clean_text, scopes, existing_rules, template, and an instruction_for_client.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesRaw transcript text; private tags are stripped automatically.
project_idYesProject id used to resolve scopes and existing rules.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does so well: it declares the access level ('analyze'), states that no proposal is created (no mutation side effect), and lists the returned fields plus an instruction_for_client. It stops short of describing error or size/rate behavior, but the safety profile is clear.

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?

Front-loads the return contract, then the crucial non-mutation caveat and the access level. Slightly repetitive in listing returns twice (prose and field list), but nothing is wasteful or confusing.

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

Completeness5/5

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

An output schema exists, yet the description still summarizes the payload and adds the access level and the 'no proposal created' caveat, which the schema cannot convey. Nothing needed to call it correctly is missing.

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 both params are documented there (private tag stripping, project_id resolving scopes). The description adds little beyond restating those, so the baseline of 3 is appropriate.

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

Purpose5/5

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

States a specific verb (extract) and resource (candidate rules from a transcript) and enumerates exactly what it returns (clean text, scope chain, existing rules, template). It is clearly distinguishable from the sibling extract_lessons_from_transcript.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly scopes the tool's job ('Does not itself create any proposal') and names the follow-up alternative ('call create_pending_proposal per candidate'), so the agent knows both when to use this and what to do next.

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