Skip to main content
Glama

spatial_affordances

Read-onlyIdempotent

Identify task types applicable to a file based on project affordances. Use returned keys to fetch relevant rules via get_playbook for context-aware development.

Instructions

v3.1.0 M4: Return the affordance keys (task_types) applicable to a file based on the bundled + project affordances.yaml. E.g., a file under mcp_server/tools/ typically affords {add_tool, write_test}. Use the returned keys with get_playbook(task_type) for relevant rules.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes
Behavior5/5

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

Adds context beyond annotations: describes lookup in affordances.yaml, version info, and example outputs. No contradiction with readOnly/idempotent/destructive hints.

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 plus a helpful example, no redundancy, front-loaded with core action.

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?

Adequately covers return type and usage for a simple tool with one parameter; could mention error behavior for missing file but not critical.

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 coverage 0%, but parameter 'file_path' is self-explanatory. Description does not add format or constraints; minimal added value.

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?

Description uses specific verb 'Return' and resource 'affordance keys (task_types)'. Example differentiates from sibling tools like spatial_nearby by focusing on affordances for a file.

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?

Description provides context (e.g., use with get_playbook) but lacks explicit when-to-use vs alternatives or exclusion scenarios.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sachinshelke/codevira'

If you have feedback or need assistance with the MCP directory API, please join our Discord server