Skip to main content
Glama
MCP Project Context Server

MCP Project Context Server

regra

Adds a business rule or project context to the current project, helping preserve critical information across development sessions.

Instructions

Adiciona uma regra de negócio ou contexto para o projeto atual. Use para guardar informações importantes que não devem ser esquecidas.

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": {
      "category": "<category>",
      "rule": "<rule>"
    },
    "name": "regra"
  }
}

Input Schema

NameRequiredDescriptionDefault
ruleYesA regra ou contexto a ser adicionado
projectNoNome do projeto (opcional, detecta automaticamente se não fornecido)
categoryYesCategoria da regra: business_rules, protected_files, code_standards, architecture, context, server_config, deploy_rules

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.2/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. It does not say whether the rule is persisted, whether duplicates are allowed or merged, whether the addition is reversible, or who can see it. The phrase 'que não devem ser esquecidas' hints that entries are re-injected later, but this is left implicit for a mutation tool.

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, front-loaded with the action and followed by the motivating usage. No filler. A little more precision about scope or category choice would have earned a 5.

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?

For a simple three-parameter tool with a fully documented schema the description is adequate, and the persistence hint ('não devem ser esquecidas') adds some value. But with no annotations and no output schema, the omission of what happens after the add succeeds leaves a real gap for a write operation.

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 schema already documents 'rule', 'project' (with auto-detection note), and the 'category' enum. The description adds no format, length, or category-selection guidance beyond what the schema states. Baseline 3 applies.

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 verb and resource: 'Adiciona uma regra de negócio ou contexto para o projeto atual.' An agent can tell this is a write tool for capturing rules/context. However, it does not distinguish itself from the sibling tool 'contexto', and the description itself offers 'contexto' as an added entity, which creates ambiguity about which tool to use for storing context.

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 para guardar informações importantes que não devem ser esquecidas' implies the usage scenario (durable knowledge capture) but gives no explicit when-to-use vs when-not, no mention of alternatives such as 'contexto' or 'registrar', and no prerequisites. The guidance is implied rather than stated.

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