Skip to main content
Glama
Aaryan-Kapoor

MCP Character Tools

Character At Index

char_at
Read-onlyIdempotent

Retrieves the character at a given position in a string, using 0-based indexing with support for negative indices to count from the end.

Instructions

Get the character at a specific index (0-based). Supports negative indices.

Args:

  • text (string): The text to index into

  • index (number): Position (0-based, negative counts from end)

Returns: The character at that position, or error if out of bounds.

Example: char_at("hello", 1) → 'e'; char_at("hello", -1) → 'o'

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe text to index into
indexYesPosition (0-based, negative from end)
Behavior4/5

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

Annotations already indicate read-only, idempotent, non-destructive behavior. Description adds clarity about error handling ('or error if out of bounds') and provides concrete examples demonstrating expected behavior.

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?

Extremely concise yet informative: two sentences plus structured Args, Returns, Example sections. Every word adds value with no redundancy.

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?

Despite lacking an output schema, the description fully explains return values and error case. For a simple tool with rich annotations, this provides sufficient context for correct invocation.

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 is 100% with clear descriptions for both parameters. The description reiterates schema content without adding new semantic details beyond clarifying the indexing behavior.

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?

Clear verb 'Get' and resource 'character at a specific index' with index details (0-based, negative). However, does not differentiate from sibling 'nth_character' which may have similar functionality.

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?

Implies usage for single character retrieval by index, including negative indices, but provides no explicit guidance on when to choose this over sibling tools like 'nth_character' or 'count_letter'.

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/Aaryan-Kapoor/mcp-character-tools'

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