Skip to main content
Glama

get_contract_scan_rules

Read-only

Read this tenant's stored contract rules (skip_folders, exclude_words, main_patterns, addition_patterns, addition_folder_patterns, exclusion_patterns, area_rules, default_area, export_sheets, fact_to_custom_fields, own_companies, max_imports_per_day) that scan, import and export use. An empty main/addition/exclusion list means the built-in default applies.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_contract_scan_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, openWorldHint=false), so the description's contribution is the tenant scoping, the enumeration of stored rule categories, and the important fallback semantics ('An empty main/addition/exclusion list means the built-in default applies'). That fallback rule is genuinely non-obvious behavior that prevents misinterpreting empty results, though nothing is said about what happens for other empty rule sets or whether defaults are materialized.

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-loaded with the verb and resource, followed by a single long parenthetical enumeration and one clarifying sentence about defaults. The twelve-item key list is dense but each entry conveys a distinct rule category; only slightly heavy as prose.

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

Completeness4/5

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

With no input parameters and no output schema, the description carries the burden of telling the agent what is returned, and it does so by naming all the rule keys plus the default-fallback condition. Value types and shapes per key are still unspecified, which matters for consumers parsing patterns and folder rules, keeping this from a 5.

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

Parameters4/5

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

The tool takes zero parameters, so the baseline is 4 and schema coverage is moot. The description instead spends its words documenting the returned rule keys, which is useful but technically output rather than parameter semantics.

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 specific verb and resource ('Read this tenant's stored contract rules') and enumerates the exact rule keys it returns, so an agent knows precisely what comes back. It does not explicitly differentiate itself from neighbouring readers such as get_tenant_rules or from the setter sibling set_contract_scan_rules, so the read/write pairing must be inferred from the names.

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?

The description implies usage by naming the consumers of these rules ('scan, import and export use'), which tells an agent when the rules matter, and adds an interpretation rule for empty lists. It never states a when-to-use condition against alternatives, nor that this should be read before calling set_contract_scan_rules to avoid overwriting unknown values.

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.