-
Notifications
You must be signed in to change notification settings - Fork 0
simplify geom inputs for tools #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
any readme updates (screenshots) we want to include with this change? |
|
@angaither you're right, we should add Claude Desktop instructions. I'll include some in another commit 🙇 edit: we do already have some. Even still, a screenshot example or two might be nice |
| @@ -0,0 +1,7 @@ | |||
| from typing import Any | |||
| from typing_extensions import TypedDict | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed that the tool description for geometry should probably also be updated to remove the feature reference language https://github.com/planetlabs/planet-mcp/blob/main/src/planet_mcp/servers/descriptions.py#L13
* supports feature references

We previously had some code to simplify tool input schemas (generated from the SDK function signatures) if tool registration failed. We also now want to simplify our geojson input type hints due to inconsistent behavior using geojson inputs with Claude Desktop.
Since we have another reason to run tool functions through the
_create_param_modified_wrapperutility, I set up a list of tools to use it with (rather than relying onPydanticSchemaGenerationErrorto trigger it).