Skip to main content
Glama

Rake

Find pin functions

find_pins
Read-onlyIdempotent

Returns the pins of a part that can carry a signal, with what the code must select to route it there, such as the alternate function, or every signal of one pin. Use it to pick the pin for a peripheral signal such as USART2_TX, to get the alternate function number for it, or to see what else a pin can do. Pin data comes from the vendors' own pin files, which the data has for ST parts, per package. For another part it says so.

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": {
      "part": "<part>"
    },
    "name": "find_pins"
  }
}

Input Schema

NameRequiredDescriptionDefault
pinNoA pin, for example PA9. Give this or a signal.
partYesThe part number. With the package, as in STM32F407VGT6, the answer is for that package. Without it, as in STM32F407VG, for every package.
signalNoA signal as the vendor names it: USART2_TX, I2C1_SCL, TIM3_CH1, SPI1_MOSI, ADC1_IN5.

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 declare readOnly, idempotent, non-destructive and closed-world behavior, so the bar is lower and the description adds real value beyond them: it discloses the data provenance ('vendors' own pin files'), a coverage constraint (only ST parts, per package), and the failure mode ('For another part it says so'). That last point is the most useful behavioral signal, since it tells the agent to expect a coverage notice rather than pin data. It stops short of describing the returned fields or how multiple matches are ordered.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and use cases are front-loaded and earn their place, but the trailing provenance sentences are awkwardly phrased ('which the data has for ST parts, per package. For another part it says so'), requiring a re-read to parse. The information is worth keeping; the wording is not tight.

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?

For a three-parameter, fully documented, read-only lookup with no output schema, the description covers what the tool returns (pins plus the selection needed to route a signal) and where the data comes from and when it is unavailable. An agent has enough to invoke it correctly and interpret an empty/unsupported result. Only the precise result shape is left implicit.

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 explains pin, part and signal, including the package-in-part-number behavior and example signal names. The description reinforces the part-number/package semantics and the 'every signal of one pin' mode, but adds no syntax or format detail the schema lacks. Baseline 3 is appropriate.

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 concrete verb and resource: it returns 'the pins of a part that can carry a signal' together with 'what the code must select to route it there, such as the alternate function.' That is specific enough for an agent to know this is a pin/alternate-function lookup rather than a register or timing lookup. It does not explicitly contrast itself with any sibling, which keeps it at 4 rather than 5.

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

Usage Guidelines4/5

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

It gives explicit use cases: 'pick the pin for a peripheral signal such as USART2_TX, to get the alternate function number for it, or to see what else a pin can do.' That maps directly onto the signal and pin parameters, so the agent knows which input mode serves which goal. There is no explicit when-not or named alternative, so it falls short of 5.

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.

Resources